类型为"GridView"的控件"ctl00_cntData_StudentLegder_gvStudentInfo"必须放置在带有runat = server的表单标记中. [英] Control 'ctl00_cntData_StudentLegder_gvStudentInfo' of type 'GridView' must be placed inside a form tag with runat=server.
本文介绍了类型为"GridView"的控件"ctl00_cntData_StudentLegder_gvStudentInfo"必须放置在带有runat = server的表单标记中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何解决
类型为"GridView"的控件"ctl00_cntData_StudentLegder_gvStudentInfo"必须放置在带有runat = server的表单标记中.
我在打印click上遇到此错误.该打印为链接按钮
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
推荐答案
检查您的网格是否包含属性runat="server"
.
为了使用服务器控件,您必须在其中具有属性runat="server"
.并且控件也应放置在页面的form
标签下.
--Amit
Check for your grid whether it contains the attributerunat="server"
or not.
In order to work with server controls you must have the attributerunat="server"
in that. And also the controls should be placed underform
tag of the page.
--Amit
这篇关于类型为"GridView"的控件"ctl00_cntData_StudentLegder_gvStudentInfo"必须放置在带有runat = server的表单标记中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文