c# - Exporting data from jqgrid to excel sheet -


hi want export data present in jqgrid in 1 of asp.net web application excel sheet looked around net , find sites tell me how mvc application , not wat want. tried doing getting error in global.asax file.
added button in web page , on click of doing this.

 protected void btnexport_click(object sender, eventargs e)     {                     grdlatefeeconfiguration.exporttoexcel("blockedusers.xls");     } 

and exception here in global.asax file

 protected void application_error(object sender, eventargs e)     {         exception exception = server.getlasterror();         httpexception httpexception = (httpexception)exception;         int httpcode = httpexception.gethttpcode();         application["errorinfor"] = httpcode;      } 

the exception object returned server.getlasrerror() method null , null pointer exception when httpexception.gethttpcode(); dont understand wat happening can explain wat happening.

this problem occurring due presence of updatepannel control when removed worked fine.


Comments