0% found this document useful (0 votes)
2 views5 pages

Validation Control Program

The document outlines a step-by-step guide for implementing a validation control program using web controls. It includes instructions for modifying error messages, setting field colors, and applying various validation techniques such as regular expression, compare, and custom validators. The final step involves adding a validation summary to the form for overall output.

Uploaded by

nandhitha1824
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Validation Control Program

The document outlines a step-by-step guide for implementing a validation control program using web controls. It includes instructions for modifying error messages, setting field colors, and applying various validation techniques such as regular expression, compare, and custom validators. The final step involves adding a validation summary to the form for overall output.

Uploaded by

nandhitha1824
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

VALIDATION CONTROL PROGRAM

STEP 1
Create design using web controls

Step 2
Change error message and controltovalidate for corresponding required field

Step 3
Change forecolour to all required field as red like below image
Step 4
Password and retype password textbox change textmode as password

Step 5
Email id next to required field just drag and drop regular expression validator control
Step 4
MOBILE NUMBER VALIDATION – DRAG AND DROP REGULAR EXPRESSION VALIDATION
AND CHANGE LIKE BELOW IMAGE

Step 5
Password using compare validation – drag and drop compare validation to retype
password textbox
Step 6
Range validation – for age field just drag and drop range validation and change shown in
image

Step 7
User id drag and drop custom validator and change properties shown in image
After change type coding inside the custom validation double click and type this coding
protected void CustomValidator1_ServerValidate(object source,
ServerValidateEventArgs args)
{
string str;
str = args.Value;
if (str.Length > 3)
{
args.IsValid = true;
}
else
{
args.IsValid = false;
}
}

Step 8

Drag and drop validation summary in below submit button and change image

OVERALL OUTPUT LIKE THIS

You might also like