Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateUserWizard Validation Controls not working

Status
Not open for further replies.

LittlBUGer

Programmer
Apr 26, 2006
81
US
Hello. I've had a site with a user registration page for a while using the createuserwizard control and everything has been working just fine. There's even requiredfield validators for each field so that nothing is missed. The problem recently surfaced when I added another validator, a regularexpression validator, to the username textbox. Previously, it 'seemed' like the required field validators were working fine and so adding one more didn't seem like much of a challenge. It was until recently that I noticed that when I click on the button to submit (and thus register the user), non of the validation controls are being fired or called and the error message I'm getting back are the default ones from ASP.NET's membership stuff. Is there something I can do to make the submit button fire the proper event so the validation works? I haven't been able to figure it out yet. Thanks.

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
 
Nevermind, I found that if you change the validator control validationgroup to the same name as the createuserwizard, all works great. Damn the fine print Microsoft! :)

"Only two things are infinite, the universe and human stupidity, and I'm not sure about the former." - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top