CodeCanyon Data Validation for NET 91113

CodeCanyon Data Validation for NET 91113

CodeCanyon Data Validation for NET 91113
.NET Script \ eCommerce
Validation \ Data \ Input \ Check \ Variable \ Form \ Validator \ Validate



.NET Script - Data Validation for NET 91113 by cooljeba @ CodeCanyon

.NET Script \ eCommerce

Last Update: 11 March 10; Compatible Browsers: Chrome 4, Chrome 5, FireFox 2, FireFox 3, IE6, IE7, IE8, Opera, Safari; Software Version: .Net 2.0, .Net 3.0, .Net 3.5, .Net 4.0; Files Included: C# CS.

Update: 22-03-2010

Live preview added: http://www.iup.in/validator/Default.aspx

Precaution is better than Cure
Data validation acts as the first step of defense against the bugs. To maintain a solution it is important to have validations to prevent the invalid data creeping into the database.

This class consists of the commonly used validations which you will find useful in your project. Each line of code is commented in detail for quick understanding of the method.

Implementation is pretty simple. You will just have to pass your input data and check for the boolean.

Instructions for use.
Usage of the methods in class are pretty straight forward

1 ) IsInteger (string value);

if (DataValidator.IsInteger("123")
{
//Valid Data
}
else
{
//Invalid Data
}
2 ) IsAlpha(string value) ;

if (DataValidator.IsAlpha("data2"))
{
//Valid Data
}
else
{
//Invalid Data
}
3 ) IsDecimal(string value);

if (DataValidator.IsDecimal("2.234"))
{
//Valid Data
}
else
{
//Invalid Data
}
4 ) IsIPAddress(string value) ;

if (DataValidator.IsIPAddress("127.0.0.1"))
{
//Valid Data
}
else
{
//Invalid Data
}
5 ) IsURL(string value);

if (DataValidator.IsURL("http://www.codecanyon.net"))
{
//Valid Data
}
else
{
//Invalid Data
}
6 ) IsEMailAddress(String value);

if (DataValidator.IsEMailAddress("me(at)example.com"))
{
//Valid Data
}
else
{
//Invalid Data
}
7 ) IsHexColor(string value);

if (DataValidator.IsHexColor("#FFFFFF"))
{
//Valid Data
}
else
{
//Invalid Data
}
8 ) IsDate(string value);

if (DataValidator.IsDate("12-Jan-2009"))
{
//Valid Data
}
else
{
//Invalid Data
}
All the best

Keywords: data validator, input data, input form validation, validate, validation, validation, variable check.



Tags: Validation, Input, Check, Validate, Variable, Validator

Premium CodeCanyon Data Validation for NET 91113 WordPress Themes, Website Templates, Mobile Themes, Flash Templates & Scripts from creative professional designers. Full details of CodeCanyon Data Validation for NET 91113 for digital design and education. CodeCanyon Data Validation for NET 91113 desigen style information or anything related.

Comments:

Name:*
E-Mail:*
Add Comments:
Enter Code: *