Web控件在表中不起作用 [英] web control not working in table

查看:68
本文介绍了Web控件在表中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是在< td>中使用Web控件表的((commented)< href> ;,超链接)和
按钮.但是这些控件都不起作用,并且发生以下错误.

请帮助我摆脱这个障碍.

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 &#39;System.Web.UI.HtmlControls.HtmlTableCell&#39;. &#39;asp:Button&#39; is of type &#39;System.Web.UI.WebControls.Button&#39;.



与其他控件相同的错误

Source Error:
Line 161:&lt;%--&lt;a href=&quot;frmPoints.aspx&quot; id=&quot;hplstatus&quot; runat=&quot;server&quot; &gt;&lt;/a&gt;--%&gt;
Line 162:&lt;%--&lt;asp:HyperLink ID=&quot;hplstatus&quot; runat=&quot;server&quot; NavigateUrl=&quot;~/BPO/frmPoints.aspx&quot; Text=&quot;View Status&quot;  Width=&quot;68px&quot; Visible=&quot;False&quot; &gt;&lt;/asp:HyperLink&gt;--%&gt;
Line 163: &lt;asp:Button ID=&quot;btnstatus&quot; runat=&quot;server&quot; CssClass=&quot;Field_name1&quot;
Line 164: Font-Bold=&quot;True&quot; onclick=&quot;Button1_Click&quot; Text=&quot;View Status&quot; /&gt;
Line 165:&lt;/td&gt

解决方案

修复链接

解析器错误:无法加载类型… [您可能会收到错误解析器错误消息:浏览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 &#39;System.Web.UI.HtmlControls.HtmlTableCell&#39;. &#39;asp:Button&#39; is of type &#39;System.Web.UI.WebControls.Button&#39;.



same error with other controls

Source Error:
Line 161:&lt;%--&lt;a href=&quot;frmPoints.aspx&quot; id=&quot;hplstatus&quot; runat=&quot;server&quot; &gt;&lt;/a&gt;--%&gt;
Line 162:&lt;%--&lt;asp:HyperLink ID=&quot;hplstatus&quot; runat=&quot;server&quot; NavigateUrl=&quot;~/BPO/frmPoints.aspx&quot; Text=&quot;View Status&quot;  Width=&quot;68px&quot; Visible=&quot;False&quot; &gt;&lt;/asp:HyperLink&gt;--%&gt;
Line 163: &lt;asp:Button ID=&quot;btnstatus&quot; runat=&quot;server&quot; CssClass=&quot;Field_name1&quot;
Line 164: Font-Bold=&quot;True&quot; onclick=&quot;Button1_Click&quot; Text=&quot;View Status&quot; /&gt;
Line 165:&lt;/td&gt

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆