|
|
|
|
Tutorial by
asp.net-tutorials.com
This attribute was introduced with ASP.NET 2.0, and makes it possible to divide your form elements into groups. Usually, a validator control is always triggered on a postback, which could sometimes lead to problems.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
2 Times
|
|
|
|
|
|
Tutorial by
asp.net-tutorials.com
If none of the other validators can help you, the CustomValidator usually can. It doesn't come with a predefined way of working; you write the code for validating your self. This is of course very powerful, since the possibilities are basically endless.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
4 Times
|
|
|
|
|
|
Tutorial by
asp.net-tutorials.com
The RegularExpressionValidator is a bit more difficult to write about, because it requires knowledge of Regular Expressions to really use it. However, RegularExpressionValidator is one of the most useful validators, because it can be used to check the validity of any kind of string.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
4 Times
|
|
|
|
|
|
Tutorial by
asp.net-tutorials.com
The RangeValidator does exactly what the name implies; it makes sure that the user input is within a specified range. You can use it to validate both numbers, strings and dates, which can make it useful in a bunch of cases. Since we validated numbers the last time, we will try with a date this time.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
4 Times
|
|
|
|
|
|
Tutorial by
asp.net-tutorials.com
The CompareValidator might not be the most commonly used validator of the bunch, but it's still useful in some cases. It can compare two values, for instance the values of two controls. In the next example, I will show you a small example of how it can be used.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
1 Times
|
|
|
|
|
|
Tutorial by
asp.net-tutorials.com
The RequiredFieldValidator is actually very simple, and yet very useful. You can use it to make sure that the user has entered something in a TextBox control.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
1 Times
|
|
|
|
|
|
Tutorial by
asp.net-tutorials.com
Ever since the first dynamic website was created, form validation has been an important subject. Getting user input through the system requires much attention, and with previous serverside scripting languages, there were no standard way of dealing with form validation.
|
|
Added on:
1/5/2011
|
Rating:
|
Viewed
3 Times
|
|
|
|