Sunday, December 9, 2018

Convert ASP.NET GridView to Excel the right way

This sample VB.NET code over comes following limitations of using the Interop dll:
1. RegisterForEventValidation can only be called during Render https://stackoverflow.com/questions/7228718/registerforeventvalidation-can-only-be-called-during-render
2. GridView must be placed inside a form tag with runat=“server” even after the GridView is within a form tag https://stackoverflow.com/questions/6343630/gridview-must-be-placed-inside-a-form-tag-with-runat-server-even-after-the-gri


Github link: https://github.com/rsk2/export-gridview-to-excel



No comments:

Post a Comment