views:

230

answers:

1

Hi experts,

In tab container let say I have two tabs [Tab1 & Tab2]

Tab1 has 2 text box with required field validator

Tab2 has 3 text box with required field validator

Now even if I am filling all the text boxes in the TAB1, it is not allowing me to postback. [because TAB2 text boxes are still empty]

& When I am filling all the textboxes [Both Tab1 & Tab2], button is firing correctly.

How to avoid this ??

I mean user has to fill details for the TAB1 & can submit the details. At that Time I don't want TAB2 validations to work.

Please help & kindly let me know if anything else is required.

+1  A: 

Add ValidationGroup="Tab1" property to controls and their respective validators which are on the first tab, and ValidationGroup="Tab2" for second tab controls.

Roman Boiko