Restricting field Input
-
Hi, I am trying to restrict the type of information entered into a field on a form. I only want it to accept numeric values. How can I achieve that? Thanks,
See if this article helps : http://www.dotnetspider.com/Technology/KBPages/99.aspx :zzz:----------------------------------------------------------------------:(( T Manjaly C# Tutorials and samples : http://www.dotnetspider.com
-
Hi, I am trying to restrict the type of information entered into a field on a form. I only want it to accept numeric values. How can I achieve that? Thanks,
Add a regular expression validator for your textbox control Set the regular expression as
[0-9]*
If you want only n number of digits make the regular expression as[0-9]n
He who controls others may be powerful,
But he who has mastered himself is mightier still. -
Add a regular expression validator for your textbox control Set the regular expression as
[0-9]*
If you want only n number of digits make the regular expression as[0-9]n
He who controls others may be powerful,
But he who has mastered himself is mightier still.