Click here to Skip to main content
15,889,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have Registration page (Name,Username,Password,Confirm password,Email,Mobile), am inserting these details in Registration table in database. after this the user login into the site using username and password.After login am giving one more page i.e membership this includes detailed information(Gender,Nationality,Educational details,Address,Employment history).


Now i want to insert these membership details also in registration table(same id).

the membership details should enter who logged into the site,particular logged person details only entered.using Sql server 2008


Thanks in advance
Posted
Comments
Sinisa Hajnal 6-Feb-15 4:06am    
And what is the question? Is there a problem with your update query? Or EF? Show the code that doesn't work, we cannot help blindly (and if you're asking for the finished code, you're on the wrong forum.

1 solution

When user Logins, you are going to fetch his details like Username, Password etc... Fetch the User ID too and keep it in Session. If your Username is unique, then no need to get the ID.

Then when you update the Membership details, just get the ID from Session and run a query with the ID in condition to update the data for that user only.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900