Click here to Skip to main content
15,916,030 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:


ASP.NET
Line 183: 
Line 184: <table><tbody><tr>
Line 185: <td> &lt;asp:Button ID="Button4" runat="server" Text="LOG-IN" /&gt; </td>
Line 186:<td> &lt;asp:Button ID="Button5" runat="server" Text="EXIT" /&gt; </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..

ASP.NET
   <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>
Posted
Updated 29-Aug-15 21:33pm
v2

Change

XML
<asp:textbox ID="Textbox2" runat="server">


to

XML
<asp:textbox ID="Textbox2" runat="server" />


And do the same with any other textboxes.
 
Share this answer
 
I have reformatted your code because the html tags did not display on screen.

XML
Line 183:
Line 184: <table><tbody><tr>
Line 185: <td> &lt;asp:Button ID="Button4" runat="server" Text="LOG-IN" /&gt; </td>
Line 186:<td> &lt;asp:Button ID="Button5" runat="server" Text="EXIT" /&gt; </td>
Line 187:</tr></tbody></table>


If your code is really like that, you should start by replacing the &lt; and &gt; by < and >
 
Share this answer
 
Comments
Patrice T 30-Aug-15 3:59am    
To downvoter: what is wrong in 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