473,387 Members | 1,530 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,387 software developers and data experts.

how to get user's UserId

Hey

ASP.NET 2.0

I'm wondering how to get the users UserId (the uniqueidentifier value stored
in the UserId column in aspnet_Users)??

I'm wondering because I want to add some more tables to the ASPNETDB.MDF
database, and use the UserID as foreign key in this custom tables....

I can't see the userId property from the Profile object....

I know I can do soemthing like this, but thought maybe there is a better
way:
select c.*
from aspnet_users a, mytable c
where a.UserId = c.UserId and a.UserName = "jeff"

What is your suggestion?

Jeff
Oct 14 '06 #1
1 1911
this may lead you to a solution

http://weblogs.asp.net/scottgu/archi...esources-.aspx

"Jeff" <it************@hotmail.com.NOSPAMwrote in message news:OS**************@TK2MSFTNGP05.phx.gbl...
Hey

ASP.NET 2.0

I'm wondering how to get the users UserId (the uniqueidentifier value stored in the UserId column in aspnet_Users)??

I'm wondering because I want to add some more tables to the ASPNETDB.MDF database, and use the UserID as foreign key in this
custom tables....

I can't see the userId property from the Profile object....

I know I can do soemthing like this, but thought maybe there is a better way:
select c.*
from aspnet_users a, mytable c
where a.UserId = c.UserId and a.UserName = "jeff"

What is your suggestion?

Jeff

Oct 14 '06 #2

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

Similar topics

3
by: Marc Walgren | last post by:
Greetings I have an ASP application to enter reservations. There are multiple user security settings that require some users to have a restricted list of client in a drop list on a form. I...
15
by: Tom Nowak | last post by:
I am writing a webapp in which a user is required to enter a login id and password on a login form. I have forms authenticaion coded in my web.config. Once the user is logged in, I want to use the...
7
by: Sandy | last post by:
Hello - I have a form that when submitted checks the database and if the username is already taken, a label shows indicating same. I need to make that label NOT visible after the user clicks...
7
by: Garry Jones | last post by:
I am allowing a user to access a page if they know the password and enter it on a form, I process that form with another php page, if its the wrong password i do not display sensitive information....
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
13
JodiPhillips
by: JodiPhillips | last post by:
G'day, I have a silly and simple problem that I need some guidance with. Due to the way our network is set up, I am unable to use the group permissions for Access and have had to implement log...
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...
0
by: rbukkara | last post by:
Hi, I have got the following error while trying to add a user in the LDAP Directory. javax.naming.NameNotFoundException: ; remaining name 'uid=vassila,ou=People,dc=cs,dc=uno,dc=edu' I have...
1
by: mixed | last post by:
Hello everybody! I have few querstions.First is how do I password protect cmdbuttons? second is..I have a function that have to return true or false, based on priviledges of an user. i have wrotte...
2
by: Steve | last post by:
I've developed a database that will be used by my team (25 people) The database is based on the Resource Planner template The database will reside on a shared drive. What I'd to do now is create...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.