-
Domain Name Registration and Your Privacy
By RMWebDesignThe internet is a wonderful thing, except for a few…
-
How to Become a Cisco Certified Network Associate (CCNA Voice)
By patti80Learn how to become a Cisco Certified Network Associate (CCNA…
-
How to Become a Cisco Certified Network Associate (CCNA Routing and Switching)
By patti80Learn how to become a Cisco Certified Network Associate with…
-
Play Item
How to Make Farfalle Pasta
in RecipesMake a classic Italian pasta and sausage dish from Everyday Italian.
-
Play Item
How to Plant Vegetables in your Backyard
in Gardening & LandscapingIdeal Bite’s Heather shows you how to plant a vegetable garden in…
-
Play Item
How to Adjust a Harley Davidson's Shocks
in MotorcyclesLearn how to adjust a Harley Davidson's shocks and suspension to help…
-
Play Item
Rocking with Winamp - #6 - Internet Radio in Winamp
in Gadgets & GizmosThere are times when all of us want to listen to something…
Learn about Different Types of Control with ASP.NET Validation Control Tab
More DIY videos at 5min.com
Video Summary:
Overview with different types of controls with ASP.NET Validation Control Tab.
Video Tags:
validation control class, web control class, visual studio 2005, Microsoft Windows, web development, total training
Source: Learn about Different Types of Control with ASP.NET Validation Control Tab
Video Transcript: (More)
Sometimes, as well as they test in whether the users enter the value, you want to ensure that the value lies in a certain range and that is the purpose of the Range Validator Control. The Range Validator enables you to specify the set of allowable values from the user. So for example, you could specify a number between zero and a hundred to represent an exam mark or you might specify a date range. So for example, you might specify the date entered by the user. It must be after the 22nd of June and before the 3rd of October. Okay, Regular Expression Validator. This is quite cool. Regular Expressions enable you to specify a specific combination of characters. So for example, you might have a post code or zip code or a telephone number or an email address or Social Security Number. Each of these has specific rules about the character combinations that you allow to have. So, what you would do is to find a Regular Expression which represents the allowable combination of characters and just add that to your webpage. And, asp.net would then guarantee that the user enters data in the correct format. See, you do not have to do any complex text handling yourself. Let us call it a significant saving.
Okay, the next one, Compare Validator. This enables you to compare a textbox for example against either a fixed value or against another textbox. One of the most common uses of this is where you have some sort of login page where the user has to enter that password and maybe where they have to reenter that password and you need to ensure that the user enters the same password in both textboxes. So the easiest way to do that would just be to sort the little Compare Validator control on to your webpage and it would do it automatically for you. Okay, so if none of those give you the level of control you need, you can if you want to implement a Custom Validator. Custom Validator lets you like your own comparison logic, you can like the Claim side logic and you can like Service side logic so that the user gets a chance to validate that data without involving the round trip to the server. So let us see how to do that in the next lesson as well. Finally, we have a Validation Summary. The Validation Summary control presents a summary of validation areas at the bottom of the webpage typically to capture and display Rms Codes or in one convenient place to the user. Okay, so that is the list of validation controls.





No comments yet.