textbox entry restrict
-
hai all, have a requirement to limit an entry into a textbox for the following only 3 digits to the right of the decimal and left is maximum like 12.234,345.213 etc how to set the property of a textbox,or any other code required. reply please am using vs2005. thanks in advance.
kissy
-
hai all, have a requirement to limit an entry into a textbox for the following only 3 digits to the right of the decimal and left is maximum like 12.234,345.213 etc how to set the property of a textbox,or any other code required. reply please am using vs2005. thanks in advance.
kissy
Hi Kissy, Look at RegularExpressionValidator and CompareValidator [regular-expressions.info] Kind regards, simsen :-)
-
Hi Kissy, Look at RegularExpressionValidator and CompareValidator [regular-expressions.info] Kind regards, simsen :-)
-
thanks for ur answer. [-+]?([0-9]*\.[0-9]+|[0-9]+) can u modify the above expression as per my requirement? i want to add like 12.234 or 234.222 like this
kissy
The person has given you a clue, maybe you should work some of it out on your owm.
Deliver yesterday, code today, think tomorrow. "http://www.heuse.com/cphumor.htm"
-
thanks for ur answer. [-+]?([0-9]*\.[0-9]+|[0-9]+) can u modify the above expression as per my requirement? i want to add like 12.234 or 234.222 like this
kissy
Here is a hole bunch of examples - also what you need: [regexlib.com/DisplayPatterns.aspx]
-
hai all, have a requirement to limit an entry into a textbox for the following only 3 digits to the right of the decimal and left is maximum like 12.234,345.213 etc how to set the property of a textbox,or any other code required. reply please am using vs2005. thanks in advance.
kissy
Try validating the control using Javascript and regular expressions. Hope this helps you. Regards, Vengat P