 |
BOOK: Beginning ASP.NET 4 : in C# and VB
 | This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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
|
|
|
|
|

October 27th, 2012, 12:12 PM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Problem with SignUp form
Im having a very big problem with the SignUp form. Normally it works but it doesn't display Security Question and Security Answer!! Why is that so?
|
|

October 27th, 2012, 11:50 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
Take a look at page 599. You'll need to set requiresQuestionAndAnswer to true in web.config. Depending on your version of Visual Studio and its settings, this attribute may be missing by default when you create a new site.
Cheers,
Imar
|
|

October 28th, 2012, 12:38 AM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi there,
Yeah I already gone through that page.. I don't have it in my web.config requiresQuestionAndAnswer, but in the Design View it does display security question and answer.. How to solve that please? Im using Visual Studio 2010 Ultimate..
|
|

October 28th, 2012, 01:29 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Then you need to add it, as I just suggested. Design View doesn't look at web.config to decide how to draw the preview of the code.
Cheers,
Imar
|
|

October 28th, 2012, 03:21 AM
|
|
Registered User
|
|
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Yeah, I put it to "true", it displays fine. However, Im able to add numeric char in the Username field, Email field can accept anything, numeric, alphanumeric char. I'm trying to set the validation accordingly that is username can be alphanumeric and email should always contain @ . and all that, but I can't get this option... Can you suggest something I can do?
|
|

October 28th, 2012, 01:12 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Hi there,
This isn't supported out of the box. You can customize the CreateUserWizard (choose Customize Create User Step on the control's Smart Task panel) and then add your own validation controls as discussed in Chapter 9.
Cheers,
Imar
|
|
 |
|