Posted on: 11/30/2014 10:15:21 AM | Views : 638

Hi Friends,
I have a page with a gridview having the 1st column as checkbox. if i check few of the checkboxes and click the export button,the checked rows should be exported to excel. Just at the same time,this page needs to be refreshed and the rows which are not yet exported should be visible on the gridview. I tried to call the gridviewbind() but its not working. I also tried using response.redirect("Page.URL").If i put the response.redirect just b4 the code for exporting,the page gets loaded,but exporting doesnt takes place. If i put the response.redirect just after the code for exporting,exporting takes place and the page is not getting redirected or loaded or refreshed. Can someone tell me a solution how to refresh my page just after the export button is clicked.
Below is my code for exporting to excel.
Protected Sub ImgExport1_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles ImgExport1.Click
For i = 0 ...

Go to the complete details ...