guitardave78
Programmer
How do i get the * to show by default before the validator is fired?
}...the bane of my life!
}...the bane of my life!
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<div>
<label for="TextBox1">TextBox1 (*):</label>
<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
</div>
That's the part of the logic that I'm disagreeing with - I think that if the field is required the page should always show that it is required regardless of whether the user has attempted to fill it in or not.Yep, but i want the * gone if the validator is displaying the error message.