Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I am a beginner and I just wanted to know that in a page while generating a report dynamically. Due to bit value in the database and might be due to NULL value, I am not able to export the generated report to EXCEl or PDF....this error is coming(Control 'gvDetails_ctl05_ctl01' of type 'CheckBox' must be placed inside a form tag with runat=server.)....but my grid in placed inside a content place holder and if i insert a form tag over the grid....again an error is occuring saying that (a page cant have more than 1 server tag).

Can you mail me some similar simple code for this. Please help me out.
Thanks
Posted
Updated 24-May-10 21:49pm
v2

1 solution

Just Add following code at the cs file.

public override void VerifyRenderingInServerForm(Control control)
{
  /* Confirms that an HtmlForm control is rendered for the specified ASP.NET
     server control at run time. */
}


This will solve the problem.
 
Share this answer
 
Comments
Sridharkameshetty 10-Jun-10 2:13am    
thanx buddy
PSK_ 10-Jun-10 2:30am    
If your issue is resolved in that case you can close the question so that other will know.

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