Regular Expression for numeric field in 2.0 & 3.5

Any new developer needed to understand importance of the validation in their application to avoid future errors or bug in application. For this purpose developer must ensure the user input to their application is proper and well handled to avoid future bug or error in the application.
In the list of validation the important validation is numeric validation. in numeric validation user must enter or application must prompt the user to enter only numeric field. In we/developer normally use the Regular Expression Validation but proper regulion expression is as follows
  • ^\d*[0-9](|.\d*[0-9]|,\d*[0-9])?$
    Use this to restrict the user to enter Only numeric field
    give me ur feedback if any


Popular posts from this blog

Restore the lost focus of Auto post back controls in update Panel control

Clone a generic list in C# using extension method

Add Comma automatically while entering amounts in textbox using Javascript