Wrox Programmer Forums
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 6th, 2006, 12:00 PM
Authorized User
Join Date: Mar 2006
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default CreateUserWizard

My Membership provider settings in the web.config are the default requiring a password of atleast 7 characters and also atleast one alphanumeric character.

I'm using the CreateUserWizard and my own content template in the CreateUserWizardStep.
For both the password textbox and confirm textbox there is an associated requiredFieldValidator control and a compareValidator.

The ErrorMessage are displayed in a ValidationSummary and the text "*" in the validation controls.

What I've noticed is that if the password boxes are empty and the 'create user' button is clicked then the user will see an error message, though if say 'abc' is entered into the password and confirm password textboxes nothing happens and the page isn't submitted due to it failing 'Page.IsValid'.

How can I let the user know that the password isn't long enough and doesn't have an alphanumeric character either programmatically or with a validation control?


Old November 18th, 2006, 08:33 PM
Registered User
Join Date: Nov 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts

I think it might be related to the content template in the CreateUserWizardStep. I am having similar trouble since I added the content template. I can't get the wizard to go to the complete step and the validation you mention is gone (which is there and works fine if you remove the content template).
Old February 5th, 2007, 06:17 PM
Authorized User
Join Date: Mar 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts

Add this in your ContentTemplate...

<asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>

Justin Toth

Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateUserWizard AghaKhan ASP.NET 2.0 Professional 1 December 5th, 2007 08:14 PM
CreateUserWizard elavio ASP.NET 2.0 Basics 1 November 18th, 2006 07:50 PM
CreateUserWizard michaelcode ASP.NET 2.0 Basics 1 August 19th, 2006 09:04 AM
CreateUserWizard zoltac007 ASP.NET 2.0 Basics 4 June 1st, 2006 04:08 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.