Im having issues with the RegularExpressionValidator in my code!
I have 2 text boxes in my html page and in the code i have the sql command that inserts the parameters t
I checked everything and finally got it,
I had to add to my web.config
the following:
<configuration>
<appSettings>
<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />
</appSettings>
</configuration>
And that solved my issues
If you want to see a mark next to the field when validation fails, you should set the Text
property of the validator:
<asp:RegularExpressionValidator ID="rev1" runat="server" ControlToValidate="TextBox1" Text="*" />
Also, if you want to see the error message, you must have a ValidationSummary
in your form.