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

last created userID

Asp.net 2.0 - coding in VB

I'm trying to get the UserID of the last created user so I can use the value
in another table. I'm not finding anything otu there that works for what I'm
trying to do.

I want the value of teh UserID column in the aspnet_Users table. I'm using
the CreateUserWizard and have tried to get the UserID in its CreatedUser
event handler. Everything I come up with is the user that was created
previously.

I need clear details since I'm very new at this.

THanks for any help,

Keith
Feb 21 '08 #1
1 1518
Well I'm really surprised nobody's answered this one yet but I think I know
what to do. I'm still trying to learn as much of this as I can. I guess if I
know the user name of the new user, I can write some sql code to get the
value of the UserID column. Not sure why I didn't think of that before but I
guess I figured the UserID would be a simple Membership property.

Keith

"Keith G Hicks" <kr*@comcast.netwrote in message
news:OI*************@TK2MSFTNGP04.phx.gbl...
Asp.net 2.0 - coding in VB

I'm trying to get the UserID of the last created user so I can use the
value
in another table. I'm not finding anything otu there that works for what
I'm
trying to do.

I want the value of teh UserID column in the aspnet_Users table. I'm using
the CreateUserWizard and have tried to get the UserID in its CreatedUser
event handler. Everything I come up with is the user that was created
previously.

I need clear details since I'm very new at this.

THanks for any help,

Keith


Feb 26 '08 #2

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

Similar topics

3
by: AndyBell | last post by:
Hi all! I have an Access 2000 database for the Habiat for Humanity where I work. This is the second database I have written and it gets a bit more complex each time... I have learned much and...
6
by: Mark R | last post by:
Hi Guru's, I have a frontend application where my boss wants to when people are using the database. I have a form which OnOpen, inserts the username, network login and date/time it was opened to...
1
by: jez123456 | last post by:
Hi, I have a windows form with a listbox control. My code all works correctly when deleting an item from the listbox except the last item. I get the following message when trying to delete the...
0
by: Ash | last post by:
Hi I'm creating a cookie on my site, and adding values to it, namely a userid and a groupid: Function1: oCookie.Values = siteID.ToString(); HttpContext.Current.Response.Cookies.Set(oCookie);...
4
by: Trint Smith | last post by:
I did have UserID as 'Dim UserID As String'. Ok, when I made it 'Public UserID As String', in the Public Area of one program and took out all the 'local' declairations of it, even in the other...
2
by: Hannibal | last post by:
Hi All, The below code use to work on my Win2K3 IIS6. for for some unknown reason it`s no longer working. here the code. Session("LOGIN_USER_ID") = UserID ' Update the cookie if the login...
1
by: Davo256000 | last post by:
hi there, i've recently started a student placement as a web developer and wondered if anyone could help me with the following problem: I'm using an ashx file to access messages that are stored in...
3
by: Jim | last post by:
Using either EW or VSE2008, I want to have a GridView that will: - Insert the logged in user's UserId from either the User table or the membership table when the user inserts a record. - When the...
4
by: sjohnson1984 | last post by:
Hello all, I have a form which is generated using a database query - the recordset is filled with agent details, login time and the like, and there are as many rows in the table as records in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
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...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...

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.