Hi,
I have a button on a page directly below my tab strip. The tab strip handles three different pages with forms on them, each with a different set of validators within validation groups. Here is my problem: I would like to have a button check more then a single validation group. As of right now I have it checking the validation on a single group within the tab. If anyone knows the solution, please let me know.
My code is below where addressForm is the validation group for address information. I would also like to have it check another group called "userForm".
Note, I have tried
This solution will submit the page and return that the page IS valid when none of the required fields are filled out.
I have a button on a page directly below my tab strip. The tab strip handles three different pages with forms on them, each with a different set of validators within validation groups. Here is my problem: I would like to have a button check more then a single validation group. As of right now I have it checking the validation on a single group within the tab. If anyone knows the solution, please let me know.
My code is below where addressForm is the validation group for address information. I would also like to have it check another group called "userForm".
btnPageSubmit.ValidationGroup = "addressForm"
Note, I have tried
Protected Sub btnPageSubmit_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnPageSubmit.Click
lblResult.Text = Page.IsValid
Validate("addressForm")
Validate("userForm")
End Sub
This solution will submit the page and return that the page IS valid when none of the required fields are filled out.