Go Back   Wiki NewForum | Latest Entertainment News > Career Forum & Tips > Tech Forum & Tutorial > ASP.NET Forum & Tutorial


ASP.NET 2.0 Validation Groups


Reply
Views: 2251  
Thread Tools Rate Thread
  #1  
Old 05-30-2009, 09:37 AM
bholus7
Guest
 
Posts: n/a
Default ASP.NET 2.0 Validation Groups

ASP.NET 2.0 Validation Groups




In ASP.NET 1.x, you would assign validation controls to input controls such as text boxes, password fields, radio ****ons, and check boxes, and the validation controls would automatically validate the data entered by an end user to input controls.

With ASP.NET 2.0, Microsoft introduces a new feature known as validation groups, which enables you to create different groups of validation controls and assign them to input controls, such as text boxes. You can assign a validation group to a collection of input controls if you want to validate the collection of input controls on the same criteria.

For example, you can assign the ****on control to a group of input controls and validate the data entered to each group of input controls on a criterion. This feature is very handy when you have multiple forms on a single web page.

For example, you can create a web page that contains login and password text boxes for registered end users, and another set of controls for new end users to register with the web site.

In this case, you can use the validation group property to perform different actions, such as logging on to the web site and registering an end user.

Reply With Quote
Reply

New topics in ASP.NET Forum & Tutorial





Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
WikiNewForum)