Wrox Programmer Forums
|
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
 
Old October 27th, 2012, 12:12 PM
Registered User
 
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?
 
Old October 27th, 2012, 11:50 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 28th, 2012, 12:38 AM
Registered User
 
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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..
 
Old October 28th, 2012, 01:29 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old October 28th, 2012, 03:21 AM
Registered User
 
Join Date: Oct 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
 
Old October 28th, 2012, 01:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!





Similar Threads
Thread Thread Starter Forum Replies Last Post
CH 9: Android Maps API Key Signup Fails Cliff2310 BOOK: Beginning Android Application Development 1 December 28th, 2011 08:48 PM
Provider error when signup a new user xaml BOOK: Silverlight 4 Problem - Design - Solution 0 June 6th, 2011 08:17 AM
Chap 15 creating login and signup pages Onypips BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 March 24th, 2011 12:16 PM
Failed to get link in e-mail on signup Ajoy BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 15 August 26th, 2007 02:22 PM
form problem nulogix PHP How-To 4 June 16th, 2004 12:08 PM





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