Ruzbuk
asked on
Validation Problems
Hi,
I am new to Visual Studeo 2008 and i am trying to use the Validation controls.
My problem is that when i click a button on my web form all the Validation controls are set off.
I am trying to make it so that only a preselected Validation controls on textboxs are used on a button click.
e.g. Say i have 6 textboxs (textbox1, textbox2, textbox3, etc) all with validation and 2 buttons(button1, button2) all on one web form.
When i click button1 i only what the Validation controls for textboxs1-3 to be used and not the Validation controls for textboxs4-6. And when i click button2 i only what the Validation controls for textboxs4-6 to be used and not the Validation controls for textboxs1-3
I would be thankful for any help in this area.
I am new to Visual Studeo 2008 and i am trying to use the Validation controls.
My problem is that when i click a button on my web form all the Validation controls are set off.
I am trying to make it so that only a preselected Validation controls on textboxs are used on a button click.
e.g. Say i have 6 textboxs (textbox1, textbox2, textbox3, etc) all with validation and 2 buttons(button1, button2) all on one web form.
When i click button1 i only what the Validation controls for textboxs1-3 to be used and not the Validation controls for textboxs4-6. And when i click button2 i only what the Validation controls for textboxs4-6 to be used and not the Validation controls for textboxs1-3
I would be thankful for any help in this area.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
The description at
http://www.4guysfromrolla.com/articles/112305-1.aspx
worked fine thanks guru_sami
http://www.4guysfromrolla.com/articles/112305-1.aspx
worked fine thanks guru_sami
Check this:
http://www.w3schools.com/ASPNET/prop_webcontrol_button_validationgroup.asp
http://www.w3schools.com/ASPNET/showasp.asp?filename=demo_prop_webcontrol_button_validationgroup