RegExp
-
Hi, I am using a RegularExpression validator control in asp.net 2.0 Found an expression for validating uk postcodes (http://regexlib.com/REDetails.aspx?regexp\_id=1064). Not sure why the validator control on the form does not function correctly because the error messsage of the validator shows up whether or not the postcode is valid. There is a textbox called txtpostcode the controltovalidate property of the validator is set to txtpostcode. The errormessage is also set. I believe I have set up the validator correctly on the page and assigned it to the correct textbox on the webform. Any thoughts please? Thanks
-
Hi, I am using a RegularExpression validator control in asp.net 2.0 Found an expression for validating uk postcodes (http://regexlib.com/REDetails.aspx?regexp\_id=1064). Not sure why the validator control on the form does not function correctly because the error messsage of the validator shows up whether or not the postcode is valid. There is a textbox called txtpostcode the controltovalidate property of the validator is set to txtpostcode. The errormessage is also set. I believe I have set up the validator correctly on the page and assigned it to the correct textbox on the webform. Any thoughts please? Thanks
Make sure that You are using Internet Explorer. Other browsers usually won't support .NET Validation Controls. Suseel Kumar
-
Hi, I am using a RegularExpression validator control in asp.net 2.0 Found an expression for validating uk postcodes (http://regexlib.com/REDetails.aspx?regexp\_id=1064). Not sure why the validator control on the form does not function correctly because the error messsage of the validator shows up whether or not the postcode is valid. There is a textbox called txtpostcode the controltovalidate property of the validator is set to txtpostcode. The errormessage is also set. I believe I have set up the validator correctly on the page and assigned it to the correct textbox on the webform. Any thoughts please? Thanks
-
Make sure that You are using Internet Explorer. Other browsers usually won't support .NET Validation Controls. Suseel Kumar
-
The RegularExressionValidator uses regular expressions without ^ and $ marking the start and end of the string. Try to remove those from the pattern. --- b { font-weight: normal; }
-
Start with a simple part of the regular expression then, and add complexity once you got it to work. --- b { font-weight: normal; }