473,383 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Anyway to Specify the User's Name with Membership?

Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and not
ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Dec 4 '07 #1
7 1223
I usually add another table user_details and join it with aspnet_Users on
UserId.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and
not
ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Dec 4 '07 #2
If you implement your own Membership Provider derived class and database,
you can add any columns and/or tables you want to, as well as any methods
you wish to add to the base class.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
>I usually add another table user_details and join it with aspnet_Users on
UserId.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and
not
>ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


Dec 4 '07 #3
If you are already using the Membership Provider, consider using also the
Profile Provider, and store the user's full name or firstname / lastname and
any additional items there.
--
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"Jonathan Wood" wrote:
Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and not
ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Dec 4 '07 #4
Yeah, I'm doing something similar, although I wasn't sure the best way. By
join, do you mean you'll create a relationship between the two tables?

Originally, I thought maybe the user's name would already be part of the
existing membership logic.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
>I usually add another table user_details and join it with aspnet_Users on
UserId.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and
not
>ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Dec 4 '07 #5
I've looked at that, but am not sure it's my best route.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Peter Bromberg [C# MVP]" <pb*******@yahoo.NoSpamMaam.comwrote in message
news:1E**********************************@microsof t.com...
If you are already using the Membership Provider, consider using also the
Profile Provider, and store the user's full name or firstname / lastname
and
any additional items there.
--
--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"Jonathan Wood" wrote:
>Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and
not
ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Dec 4 '07 #6
No, I mean just joining tables in the from clause like

select u1.LastName, u1.FirstName, a1.UserName
from aspnet_Users a1 inner join user_Details u1
on a1.UserId=u1.UserId

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Yeah, I'm doing something similar, although I wasn't sure the best way. By
join, do you mean you'll create a relationship between the two tables?

Originally, I thought maybe the user's name would already be part of the
existing membership logic.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
>>I usually add another table user_details and join it with aspnet_Users on
UserId.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
>>Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and
not
>>ideal for the user's actual name. (Also, I'm going to use emails for the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com


Dec 5 '07 #7
Okay, so you just mean to create the join when querying the database so that
the data is all together.

Great. Thanks for the clarification. This is probably what I'll be doing.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:uF**************@TK2MSFTNGP02.phx.gbl...
No, I mean just joining tables in the from clause like

select u1.LastName, u1.FirstName, a1.UserName
from aspnet_Users a1 inner join user_Details u1
on a1.UserId=u1.UserId

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>Yeah, I'm doing something similar, although I wasn't sure the best way.
By join, do you mean you'll create a relationship between the two tables?

Originally, I thought maybe the user's name would already be part of the
existing membership logic.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
>>>I usually add another table user_details and join it with aspnet_Users on
UserId.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Jonathan Wood" <jw***@softcircuits.comwrote in message
news:%2***************@TK2MSFTNGP04.phx.gbl...
Is there any way to specify a user's name using ASP.NET membership?

I know there is a UserName property but that's a unique login name, and
not
ideal for the user's actual name. (Also, I'm going to use emails for
the
username.)

Thanks for any suggestions.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Dec 5 '07 #8

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

Similar topics

1
by: Kirk Groome | last post by:
Hi all, I'm working on a web site and I would like to use the VS login controls. The problem I'm having is that when I create a new user all works fine. The user gets added to the database and...
2
by: Ray Booysen | last post by:
Hi all I'm wanting to know if its possible to retrieve the current user when using the 2.0 membership provider. The GUID UserID in Users I am using as a foreign key in other tables and I need...
4
by: Mike | last post by:
Hi all, In my recent ASP.NET 2.0 appl, I need to verify that the supplied email address is valid or not. So, here's my situation: - In my <profilearea, I created <isVerifiedproperty. - Suppose a...
1
by: Tarun Mistry | last post by:
Hi all, I am using the ASP.NET 2.0 security model to impliment user access control on my site. I have a few questions hopefully someone can answer: 1) From the encrypted ticket stored in the...
2
by: shapper | last post by:
Hello, I am creating a user as follows: Membership.CreateUser("user", "pass", "user@domain.com") I checked the SQL tables and the user is there. Then I tried to authenticate the user as...
3
by: =?Utf-8?B?TWFyY0c=?= | last post by:
I have a Server.Transfer in my asp:Login LoggedIn event handler. I am forcing transfer to a specific page since I do not want to use the ReturnURL that is in Request.Params (i.e., the user...
1
by: =?Utf-8?B?aGZkZXY=?= | last post by:
Hello, I have a web application that makes use of the SQL Membership and Role providers. My app has admin screens to manage users (membership), roles, and supplementary user data. I have just...
4
by: Scott M. | last post by:
When profile data is stored in ASP .NET, where is the user data persisted? For how long is it persisted: is it session persisted or permanent (like a cookie)?
0
by: myth0s | last post by:
Hi, The question: Is it possible to have two differents ActiveDirectory Membership Provider in web.config and change at run-time from the default provider to the second provider if the first one...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.