
Update: 22-03-2010
Live preview introduced: http://www.iup.in/validator/Default.aspx
Precaution is better than Cure
Knowledge validation acts as the first step of protection in opposition to the bugs. to keep up a solution it is important to have validations to forestall the invalid data creeping into the database.
This elegance consists of the widely used validations which you will to find helpful for your undertaking. Each line of code is commented intimately for speedy understanding of the method.
Implementation is lovely simple. you'll simply have to go your enter knowledge and check for the boolean.
Instructions to be used:
Utilization of the strategies in class are pretty uncomplicated
1 ) IsInteger (string worth);
if (DataValidator.IsInteger("123") //Valid Data else //Invalid Data2 ) IsAlpha(string price) ;
if (DataValidator.IsAlpha("data2")) //Valid Data else //Invalid DataTHREE ) IsDecimal(string value);
if (DataValidator.IsDecimal("2.234")) //Valid Data else //Invalid Data4 ) IsIPAddress(string worth) ;
if (DataValidator.IsIPAddress("127.0.0.1")) //Valid Data else //Invalid DataFIVE ) IsURL(string value);
if (DataValidator.IsURL("http://www.codecanyon.net")) //Valid Data else //Invalid Data6 ) IsEMailAddress(String worth);
if (DataValidator.IsEMailAddress("me(at)example.com")) //Valid Data else //Invalid Data7 ) IsHexColor(string price);
if (DataValidator.IsHexColor("#FFFFFF")) //Valid Data else //Invalid Data8 ) IsDate(string value);
if (DataValidator.IsDate("12-Jan-2009")) //Valid Data else //Invalid Dataall of the easiest
FULL DOWNLOAD
No comments:
Post a Comment