User control not validating issues dating twin
However, the login page currently validates the supplied credentials against a hard-coded list of username and password pairs.
We need to update the login page's logic so that it validates credentials against the Membership framework's user store.
Thanks jive, each control has it's own validation group, assigned when it is created.
I tried having the same one hard coded but if there were 4 user controls on a page, validation caused the error message to be shown 4 times. Validate("Validation Group Name") in a foreach loop and see how that goes.
Let's update our login page (~/ tutorial, creating an interface with two Text Boxes for the username and password, a Remember Me checkbox, and a Login button (see Figure 1).
So that main page will never know and never care what validation group of each usercontrol.
I notice that OP wrapped these usercontrol in a update panel, and if the button is out of this update panel, maybe it will cause the issue.
We will also look at how to customize the login control's appearance and behavior.
method, and then examined using the Create User Wizard Web control.Validate("validationgroup") I get no error messages at all.