473,758 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Customizing the ASP.Net 2.0 Membership Architecture

I'm just starting to dive into the new membership stuff and wondering
if it is possible to customize the default membership architecture in
ASP.Net 2.0 to do the following:

Instead of UserName and Password for the login account, I want E-mail
Address and Password as the main login credentials. I'd also like to
store additional info such as Name, Address, Nickname, and Bio. I also
want the e-mail address and nicknames to both be unique.

My site is using SQL 2005 for all other user account functions (stuff
they've uploaded and such). On a user's "home page", I'd like to
retrieve data that belongs to them. Thus, my 2005 tables will need a
key to the logged-in user so I can say "go get the rows entered by
xxx". I'd like to key off the UserId guid. Is this readily accessible
from the logged in user account?

I've gone through most of the basic demos regarding membership I found
on the Net, but nothing really customizes the membership process. Are
there any good resources that will get me on the right track?

Thanks.

Apr 25 '07 #1
3 1624
You can pretty much do anything you like with custom Membership, Roles and
Profle provided that you write your own custom providers for each by deriving
from the base classes for each. There's plenty of material on this.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"daokfella" wrote:
I'm just starting to dive into the new membership stuff and wondering
if it is possible to customize the default membership architecture in
ASP.Net 2.0 to do the following:

Instead of UserName and Password for the login account, I want E-mail
Address and Password as the main login credentials. I'd also like to
store additional info such as Name, Address, Nickname, and Bio. I also
want the e-mail address and nicknames to both be unique.

My site is using SQL 2005 for all other user account functions (stuff
they've uploaded and such). On a user's "home page", I'd like to
retrieve data that belongs to them. Thus, my 2005 tables will need a
key to the logged-in user so I can say "go get the rows entered by
xxx". I'd like to key off the UserId guid. Is this readily accessible
from the logged in user account?

I've gone through most of the basic demos regarding membership I found
on the Net, but nothing really customizes the membership process. Are
there any good resources that will get me on the right track?

Thanks.

Apr 25 '07 #2

Read this:
http://msdn2.microsoft.com/en-us/library/at64shx3.aspx

about "profiles"

or google "asp.net profiles"

here is a "bird eye view" that might help also.
http://msdn2.microsoft.com/en-us/library/ms972319.aspx

"daokfella" <jj******@hotma il.comwrote in message
news:11******** **************@ t39g2000prd.goo glegroups.com.. .
I'm just starting to dive into the new membership stuff and wondering
if it is possible to customize the default membership architecture in
ASP.Net 2.0 to do the following:

Instead of UserName and Password for the login account, I want E-mail
Address and Password as the main login credentials. I'd also like to
store additional info such as Name, Address, Nickname, and Bio. I also
want the e-mail address and nicknames to both be unique.

My site is using SQL 2005 for all other user account functions (stuff
they've uploaded and such). On a user's "home page", I'd like to
retrieve data that belongs to them. Thus, my 2005 tables will need a
key to the logged-in user so I can say "go get the rows entered by
xxx". I'd like to key off the UserId guid. Is this readily accessible
from the logged in user account?

I've gone through most of the basic demos regarding membership I found
on the Net, but nothing really customizes the membership process. Are
there any good resources that will get me on the right track?

Thanks.

Apr 25 '07 #3
Any Membership Provider class that derives from the abstract
MembershipProvi der class may extend MembershipProvi der with as many
additional fields, properties, methods, etc as you like. This is simply a
property of OOP (extensibility/Inheritance). The only requirement is that
the derived class overrides all abstract members of the base class.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net

"daokfella" <jj******@hotma il.comwrote in message
news:11******** **************@ t39g2000prd.goo glegroups.com.. .
I'm just starting to dive into the new membership stuff and wondering
if it is possible to customize the default membership architecture in
ASP.Net 2.0 to do the following:

Instead of UserName and Password for the login account, I want E-mail
Address and Password as the main login credentials. I'd also like to
store additional info such as Name, Address, Nickname, and Bio. I also
want the e-mail address and nicknames to both be unique.

My site is using SQL 2005 for all other user account functions (stuff
they've uploaded and such). On a user's "home page", I'd like to
retrieve data that belongs to them. Thus, my 2005 tables will need a
key to the logged-in user so I can say "go get the rows entered by
xxx". I'd like to key off the UserId guid. Is this readily accessible
from the logged in user account?

I've gone through most of the basic demos regarding membership I found
on the Net, but nothing really customizes the membership process. Are
there any good resources that will get me on the right track?

Thanks.

Apr 25 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
6689
by: VR | last post by:
I am trying to embed a check box into a FlexGrid's cell, but having a problem when I start scrolling the grid. Here is my MyCheckBox class... class MyCheckBox : CheckBox { void Init ( AxMSFlexGridLib.AxMSFlexGrid oGrid,
3
8347
by: John | last post by:
Hi I am using create user wizard with sql server based membership/roles. I have the following questions; 1. How can I get rid of the security question and answer as I don't need it in my app? 2. How can I get the control to send an email to the "office" so they can authorise the account before it can be activated for the user?
9
2175
by: Paul Keegstra | last post by:
Hi, I am currently working on an asp.net 2.0 web site that is a replacement of a classic asp web site. The current web site uses a Commerce Server 2002 database for storing user information. It does not currently use any of the Commerce Server 2002 functionality with the exception of the user authentication features. I have written my replacement application to use a custom login form and custom connection string so that I can use...
2
14157
by: Balaji | last post by:
Hi All, Can I use more than one membership provider for a given website? I understand only one of them could be default one. If yes, then how to programmatically access the other membership provider? For e.g. lets say I have a SQLMembership provider and OracleMembership provider. SQL would be my default provider. During authentication, based on the value of an additional parameter in the login screen, I need to validate against SQL or...
3
3282
by: ryan.mclean | last post by:
Hello everyone, I am wondering, can the membership provider be changed at runtime? Perhaps the connectionStringName? I would like to use a different database based on the server the site is on. I suppose that a custom provider could be used to accomplish this, is there another way?
0
1176
by: brown | last post by:
We started an asp.net 2.0 web site with the new login controls. It seems like the Membership and MembershipUser functionality is attached to the web site, so all the web pages for the site will have to be in the same project, in this correct? We are using the asp.net web application project model instead of the new asp.net 2.0 web site model based on folders. We'd like to just use the built in Membership and MembershipUser help and not have...
0
998
by: mehdi | last post by:
Hi folks, I got a general question that I cannot find the answer for. Consider a 3-tier application architecture with a Web Service handling the business layer (BL) logic. The BL provides the client the facility to create/update/delete or query any given Employee account within the system. Each employee has got a username/password pair that's supposed to be stored in the *aspnetdb* database using the Membership API. The question is that...
4
4733
by: =?Utf-8?B?Q2hyaXMgQ2Fw?= | last post by:
I have been having some trouble with implementing a custom Membership Provider. We have a custom data store and business logic that pulls user information. I need some level of functionality above and beyond what the prodiver currently allows. I need the ability to access a user id and the user's permission id. With Forms authentication in 1.1, I would just create a custom identiy and principal and store the information in the identity....
3
2184
by: Glenn | last post by:
My current classic-ASP site has users, projects, roles and the 2.0 membership looks like a perfect fit, but I'm having trouble finding examples of how to have users that belong to different projects, and have different roles per project. The current model.. * When a user joins my site, they eventually end up joining or creating one or more projects. But, they are not required to be a member of a project to be a member of the site.
0
10076
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9908
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9885
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8744
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5332
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3832
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3402
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.