asp:PostBackTrigger ControlID=xlsExport
Tuesday, July 31, 2007
Export to Excel from UpdatePanel
If you gridview inside update panel, then when you export to excel on button click using Response.ContentType and Response.write method, you will get an error of Sys.Page... error. To overcome this, in the triggers section, have
asp:PostBackTrigger ControlID=xlsExport .
asp:PostBackTrigger ControlID=xlsExport
Subscribe to:
Post Comments (Atom)
1 comment:
public override void VerifyRenderingInServerForm(Control control)
{
// Confirms that an HtmlForm control is rendered for the
//specified ASP.NET server control at run time.
}
Post a Comment