|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Regular Expression Validator questionI 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? My regluar expression should also catch no entry by the user. Thanks. -- ASP.NET fan. curious wrote:
> I am using a RegularExpressionValidator to validate a TextBox. I use MSDN: "Validation succeeds if the input control is empty. If a value is> "^[\+|-]?[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? My regluar expression should also catch no > entry by the user. > > Thanks. > -- > ASP.NET fan. required for the associated input control, use a RequiredFieldValidator control in addition to the RegularExpressionValidator control."
How to change the font style and size on the entire Aspx page programatically
Ajax Triggers for DropDownList don't fire Embeding html controls in Server Control Pass parameter from pages aspx Generating the *.aspx.designer.vb Files Validation in GridView ListBox Base Class won't let me implement a LoadPostData function Validation of RadioButtonList Menu question (list menu) Menu can't refresh |
|||||||||||||||||||||||