Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how it can be solved

Control 'ctl00_cntData_StudentLegder_gvStudentInfo' of type 'GridView' must be placed inside a form tag with runat=server.
i got this error on the print click.that print is link button
Posted
Comments
Karthik Harve 12-Sep-12 4:41am    
show your page source. You may missing the some attributes.

1 solution

Check for your grid whether it contains the attribute runat="server" or not.
In order to work with server controls you must have the attribute runat="server" in that. And also the controls should be placed under form tag of the page.


--Amit
 
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