Note that there are some explanatory texts on larger screens.

plurals
  1. POThe 'Text' property of 'asp:TextBox' does not allow child objects
    primarykey
    data
    text
    <p>I'm converting classic ASP over to ASP.Net, and came up with this error for one of the pages:</p> <pre><code>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 120: &lt;tr&gt; Line 121: &lt;td&gt;Compliment Art:&lt;/td&gt; Line 122: &lt;td&gt;&lt;asp:CheckBox runat="server" ID="mail_Comp_Art" /&gt;&lt;/td&gt; Line 123: &lt;/tr&gt; Line 124: &lt;tr&gt; </code></pre> <p>As you can see, I have an asp:CheckBox element, but I am getting an error as if it is an asp:TextBox. I really don't know what I'm doing wrong at this point, and am fairly tired now as well...</p> <p>In the code behind, I am checking a variable, and if it's set to true, I have:</p> <pre><code>mail_Comp_Art.Checked = true; </code></pre> <p>This is not showing an error, though, in Visual Studio. Any insight would be appreciated.</p> <p><strong>EDIT</strong></p> <p>Oh wow... Now that I am more awake, I noticed that I had some code commented out, and it was causing the issue. Although the error showed it was the code that was not commented out. Very odd. The actual error was on line 117. I don't understand why it would have caused the error to begin with since it was commented out, or why it did not say it was that line instead of the one it does say is wrong...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload