User-1793215261 posted
Hello
I am getting a couple of green underline errors with an input field (Name) in my contact.aspx form. In that file, I have (stripped):
<asp:Label runat="server" AssociatedControlID="user_name">Name</asp:Label>
<asp:TextBox runat="server" ID="user_name" TextMode="Name" />
<asp:ValidationSummary ID="ValidationSummary1" runat="server" />
<asp:RequiredFieldValidator runat="server" ControlToValidate="user_name"</asp:RequiredFieldValidator>
One error is with TextMode="Name" in this line:
<asp:TextBox runat="server" ID="user_name" TextMode="Name" />
Error: The values permitted for this attribute do not include 'Name'.
Parser Error Message: Cannot create an object of type 'System.Web.UI.WebControls.TextBoxMode' from its string representation 'Name' for the
'TextMode' property.
My message field follows the same format as above and I am not getting any errors there.
The other green underline is here:
<asp:RequiredFieldValidator
Error: Element 'RequiredFieldValidator' is missing the '<' from its start tag (when it is clearly not).
Thanks!