Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
RegularExpressionValidator problem
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 1986634"] I am using a RegularExpressionValidator to validate a TextBox. I use "^[\+|-]?[0-9]+(\.[0-9]*)?$" to check for a real number. The control works fine as long as the user enters something in the TextBox; it does not work if the user leaves the TextBox blank. Is there a bug in the implementation of the RegularExpressionValidator? The above regluar expression should also catch no entry by the user. I have added a RequiredFieldValidator to solve the problem, but it does not make sense to have two vlidators for the same textbox: a RegularExpressionValidator and a RequiredFieldValidator. Thanks. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
RegularExpressionValidator problem
Top