Author: phamster | Posted on: 2/19/2010 3:50:43 PM | Views : 813

 Hey guys,
 
I recieve the following error:
Control 'GridView1_ctl06_chkBxAllCoa' of type 'CheckBox' must be placed inside a form tag with runat=server. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Control 'GridView1_ctl06_chkBxAllCoa' of type 'CheckBox' must be placed inside a form tag with runat=server.

Source Error:


Line 48: myForm.Attributes.Add("runat", "server"); Line 49: myForm.Controls.Add(myControl); Line 50: myPage.RenderControl(writeHTML); Lin ...

Go to the complete details ...