分析器错误消息:'asp:textbox'的'Text'属性不允许子对象。 [英] Parser Error Message: The 'Text' property of 'asp:textbox' does not allow child objects.
问题描述
分析程序错误
描述:解析为此请求提供服务所需的资源时出错。请查看以下特定的解析错误详细信息并适当修改源文件。
解析器错误消息:'asp:textbox'的'Text'属性不允许子项对象。
来源错误:
第183行:
第184行:< table > < tbody > < tr >
第185行:< td > & lt; asp:按钮ID =Button4runat =serverText =LOG-IN/& gt; < / td >
第186行:< td > & lt; asp:按钮ID =Button5runat =serverText =EXIT/& gt; < / td >
第187行:< / tr > < / tbody > < / table >
源文件:/WebSite2/home.aspx行:185
版本信息:Microsoft .NET Framework版本:4.0.30319; ASP.NET版本:4.0.30319.34009
,代码是..
< div class = tile_div >
< 表 class = tile_table align < span class =code-keyword> = center >
< tr >
< td >
< asp:按钮 ID = Button2 runat = server 文本 = HOME onclick = Button2_Click / >
< / td >
< td >
< asp:按钮 ID = Button1 runat = server 文字 = CANDIADTE INFO onclick = Button1_Click / >
< / td >
< td >
< asp:按钮 ID = Button3 runat = server 文字 = 帮助 onclick = Button3_Click / >
< / td >
< / tr >
< / table >
< / div >
< 标题 > 选举委员会登录< / caption >
< 表 > < tbody > < tr >
< th > USERNAME < / th >
< td >
< asp:textbox ID = Textbox1 runat = server >
< / td >
< / tr > < / tbody > < / table >
< table > < tbody > < tr > < th > EMPID
< / th >
< td > < asp:textbox ID = Textbox2 runat = 服务器 >
< / td >
< ; / tr > < / tbody > < / table >
< tr >
< big > < ; 表 > < thead > < > PASSWORD < / th > < / thead > < / table >
< td >
< asp :textbox ID = Textbox3 运行at = server >
< / td > ; < / big > < / tr >
< tr >
< td > < asp:按钮 ID = Button4 runat = server 文字 = < span class =code-keyword> LOG-IN / > < / td >
< td > < asp:按钮 ID = Button5 runat = server 文字 = 退出 / > < / td >
< / tr >
< td > < a href = < span class =code-keyword> ecreg.aspx > 新用户?请注册!! < / a >
< / td > < / tr >
更改
< asp:textbox ID = Textbox2 runat = 服务器 >
to
< asp:textbox ID = Textbox2 runat = server / >
和其他任何文本框一样。
我已重新格式化你的代码,因为html标签没有在屏幕上显示。
第183行:
第184行: < 表 > < tbody > < tr >
第185行:< span class =code-keyword>< td > & lt; asp:按钮ID =Button4runat =serverText =LOG-IN/& gt; < / td >
第186行:< td > & lt; asp:按钮ID =Button5runat =serverText =EXIT/& gt; < / td >
第187行:< / tr > < / tbody > < / table >
如果您的代码非常类似,则应首先更换& lt; 和& gt; < 和>
Server Error in '/WebSite2' Application.
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: The 'Text' property of 'asp:textbox' does not allow child objects.
Source Error:
Line 183:
Line 184: <table><tbody><tr>
Line 185: <td> <asp:Button ID="Button4" runat="server" Text="LOG-IN" /> </td>
Line 186:<td> <asp:Button ID="Button5" runat="server" Text="EXIT" /> </td>
Line 187:</tr></tbody></table>
Source File: /WebSite2/home.aspx Line: 185
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34009
and the code is..
<div class="tile_div">
<table class="tile_table" align="center">
<tr>
<td>
<asp:Button ID="Button2" runat="server" Text="HOME" onclick="Button2_Click" />
</td>
<td>
<asp:Button ID="Button1" runat="server" Text="CANDIADTE INFO" onclick="Button1_Click" />
</td>
<td>
<asp:Button ID="Button3" runat="server" Text="HELP" onclick="Button3_Click"/>
</td>
</tr>
</table>
</div>
<caption> ELECTION COMMISSION LOGIN</caption>
<table><tbody><tr>
<th>USERNAME</th>
<td>
<asp:textbox ID="Textbox1" runat="server">
</td>
</tr></tbody></table>
<table><tbody><tr><th>EMPID
</th>
<td> <asp:textbox ID="Textbox2" runat="server">
</td>
</tr></tbody></table>
<tr>
<big><table><thead><th>PASSWORD</th></thead></table>
<td>
<asp:textbox ID="Textbox3" runat="server">
</td></big></tr>
<tr>
<td> <asp:Button ID="Button4" runat="server" Text="LOG-IN" /> </td>
<td> <asp:Button ID="Button5" runat="server" Text="EXIT" /> </td>
</tr>
<td> <a href="ecreg.aspx">new user? please register!!</a>
</td></tr>
Change
<asp:textbox ID="Textbox2" runat="server">
to
<asp:textbox ID="Textbox2" runat="server" />
And do the same with any other textboxes.
I have reformatted your code because the html tags did not display on screen.
Line 183: Line 184: <table><tbody><tr> Line 185: <td> <asp:Button ID="Button4" runat="server" Text="LOG-IN" /> </td> Line 186:<td> <asp:Button ID="Button5" runat="server" Text="EXIT" /> </td> Line 187:</tr></tbody></table>
If your code is really like that, you should start by replacing the < and > by < and >
这篇关于分析器错误消息:'asp:textbox'的'Text'属性不允许子对象。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!