I programmed a web user control that basically allows the user to choose whether he is a registered member or an unregistered member, and fill in the fields accordingly, that is, if the user is a member, she is asked to indicate her username and password, as well as a sign which disconnected. if the user is not registered, she will be asked to provide registration information, and the login fields are disabled. I find it a very common practice.
each option has its own "ValidationGroup" in the fields. that is, the login fields have ValidationGroup = "Login", the registration fields have ValidationGroup = "SignUp".
My problem is that when I put this WebUserControl on any page, none of the fields are checked (only the fields of the web page are checked). If I remove the ValidationGroup from all the fields in my user control, then all of them will be checked, but in this case, if the user is registered, the login fields are also checked and the check is not performed.
Any ideas how to overcome this?
Thanks a lot, Assaf.
Assaf source
share