Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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 April 15th, 2009, 08:15 PM
Registered User
 
Join Date: Oct 2008
Posts: 5
Thanks: 3
Thanked 0 Times in 0 Posts
Default Problem regarding Login controls

hello everyone

i m a beginner in asp.net2.0. my problem is that when i m editing the login controls i m not able to delete inbuilt controls,just like,in create_user control if i do not want security question control then how to delete it while editing ?

another doubt is,i hav my own database for user details can i use login controls to insert ,delete or update any user or i hav to use the default database ASPNETDB.

thanks
 
Old April 16th, 2009, 01:14 AM
Lee Dumond's Avatar
Wrox Author
 
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

Quote:
in create_user control if i do not want security question control then how to delete it
With many of the so-called "rich" controls, you cannot "edit" the child controls directly; instead, you either set properties or alter the underlying functionality.

For example, you cannot make the security question control go away directly. To get rid of it, you must alter the underlying MembershipProvider such that a security question and answer is not required. If you do that, then the CreateUserWizard won't show the security question and answer controls.

Quote:
i hav my own database for user details can i use login controls to insert ,delete or update any user or i hav to use the default database ASPNETDB
You are totally free to use your own database (or whatever data store you want) to store use details. However, if you do that, you must create a class that implements the MembershipProvider abstract class yourself. This is not an easy task. There are 8 properties and 17 methods you must implement by hand. I've done it. Not fun.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}
The Following User Says Thank You to Lee Dumond For This Useful Post:
bond007 (April 17th, 2009)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Login Controls mashype ASP.NET 3.5 Basics 4 January 26th, 2009 03:07 PM
Which SMTP server for login and other controls? tobe ASP.NET 2.0 Basics 0 November 30th, 2007 07:02 PM
Login Controls and Recover Password ~Bean~ ASP.NET 2.0 Professional 12 November 15th, 2006 03:13 PM
problem with login? benz81 Beginning PHP 1 November 2nd, 2006 01:37 AM
Login controls not using SQL server drb2k2 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 March 5th, 2006 06:25 PM





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