Click here to Skip to main content
16,017,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I tried to Export a gridview to Excel. And i succeded with the help from Forum and internet. In that code there is a part like below. Can anyone tell me what it is and how it works???

<pre lang="midl">

public override void VerifyRenderingInServerForm(Control control)
    {

        // Confirms that an HtmlForm control is rendered for the
        specified ASP.NET server control at run time.

    }

Posted

1 solution

as far as i can recall this has to be overriden in order to allow you to grab the html from your gridview without it being wrapped in a <form runat=server> tag. see this msdn article for more info about the event
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900