Im working on a website built in .net and im having some trouble with a ‘validation’
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server"
ErrorMessage="<p>Invalid Phone Number!</p>"........
What this does is posts a message on the page with an inline style, what I need it to do is add a class to an input field instead, is this possible?
I would recommend using a
CustomValidatorfor this instead:http://msdn.microsoft.com/en-us/library/9eee01cx(v=VS.100).aspx