Web控件在表中不起作用 [英] web control not working in table
本文介绍了Web控件在表中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
按钮.但是这些控件都不起作用,并且发生以下错误.
请帮助我摆脱这个障碍.
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: System.Web.UI.HtmlControls.HtmlTableCellCollection must have items of type 'System.Web.UI.HtmlControls.HtmlTableCell'. 'asp:Button' is of type 'System.Web.UI.WebControls.Button'.
与其他控件相同的错误
Source Error: Line 161:<%--<a href="frmPoints.aspx" id="hplstatus" runat="server" ></a>--%> Line 162:<%--<asp:HyperLink ID="hplstatus" runat="server" NavigateUrl="~/BPO/frmPoints.aspx" Text="View Status" Width="68px" Visible="False" ></asp:HyperLink>--%> Line 163: <asp:Button ID="btnstatus" runat="server" CssClass="Field_name1" Line 164: Font-Bold="True" onclick="Button1_Click" Text="View Status" /> Line 165:</td>
解决方案
修复链接
解析器错误:无法加载类型… [您可能会收到错误解析器错误消息:浏览asp时无法加载类型" X" .net页面 [ ^ ]
由于某些属性而导致的错误发生在< td>内部.标签.
i m just using a web control in a <td> of a table,((commented)<href>,hyperlink)and
button.but none of these control are working and following error occurs.
please help me to get rid out of this.
Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: System.Web.UI.HtmlControls.HtmlTableCellCollection must have items of type 'System.Web.UI.HtmlControls.HtmlTableCell'. 'asp:Button' is of type 'System.Web.UI.WebControls.Button'.
same error with other controls
Source Error: Line 161:<%--<a href="frmPoints.aspx" id="hplstatus" runat="server" ></a>--%> Line 162:<%--<asp:HyperLink ID="hplstatus" runat="server" NavigateUrl="~/BPO/frmPoints.aspx" Text="View Status" Width="68px" Visible="False" ></asp:HyperLink>--%> Line 163: <asp:Button ID="btnstatus" runat="server" CssClass="Field_name1" Line 164: Font-Bold="True" onclick="Button1_Click" Text="View Status" /> Line 165:</td>
解决方案
Fix links
Parser Error: Could not load type…[^]
You may receive the error "Parser Error Message: Could not load type ''X" when browsing an asp.net page [^]
errors occurrs due to some properties were not functioning inside <td> tag.
这篇关于Web控件在表中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文