views:

10

answers:

0

I have a page containing a SaveControl control, which in turn eventually link up with two TabControls, both containing TextBox fields and validators to go with them. When saving changes, the containing control cycles through each TabControl to get data.

When I attempt to save the form via postback, it seems that only validators in the first tab are taken into account, as the IsValid member is set to to true even though nothing in the second tab has been filled out (several fields have RequiredFieldValidator's with them).

My questions are:

1) Where in the ASP.Net page life-cycle is the client-side validation happening, and

2) Why is it that only one tab seems to run any Validators at all? This could be due to the containing control itself, but most of the content is really back-end code-behind stuff, and I was under the impression that these things usually happen after the page has been considered valid (which it is not, in my case).

I hope I posed my question in a comprehensible manner, and thanks in advance for any advice.