Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 6th, 2006, 12:00 PM
Authorized User
 
Join Date: Mar 2006
Location: , , .
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?

thanks,
Michael.

Reply With Quote
  #2 (permalink)  
Old November 18th, 2006, 08:33 PM
Registered User
 
Join Date: Nov 2006
Location: Indianapolis, IN, .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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).
Reply With Quote
  #3 (permalink)  
Old February 5th, 2007, 06:17 PM
Authorized User
 
Join Date: Mar 2005
Location: , , .
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Add this in your ContentTemplate...

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


Justin Toth
http://www.universityauction.net
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:08 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.