Advertisement

07.18.2008 at 07:20AM PDT, ID: 23576935
[x]
Attachment Details

How do I get the UserId from aspnet_Users after CreateUser() to use as a foreign key in another Table?

Asked by robaherne in .Net Editors & IDEs, SQL Server 2005, .NET Framework 3.x versions

Tags:

I'm using 'CreateUser()' to insert a new user... but in the same event I want to retrieve the new created 'UserId' from 'aspnet_Users' and insert it into another table as a foreign key.

Many thanks.Start Free Trial
[+][-]07.18.2008 at 07:27AM PDT, ID: 22036126

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, SQL Server 2005, .NET Framework 3.x versions
Tags: asp.net c#
Sign Up Now!
Solution Provided By: elimesika
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.18.2008 at 08:21AM PDT, ID: 22036764

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 08:42AM PDT, ID: 22037010

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.18.2008 at 09:17AM PDT, ID: 22037402

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628