Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hello

i have on User_Registration table in which following fields are availables

User_ID 	nvarchar(50)	Unchecked
Password	nvarchar(50)	Unchecked
FirstName	nvarchar(50)	Checked
LastName	nvarchar(50)	Checked
Gender  	nvarchar(50)	Checked
Email_ID	nvarchar(50)	Checked
Address 	nvarchar(100)	Checked


now when user login and purchase some product so how i retrieve address and other data from User_Registration table
Posted
Updated 21-May-13 10:23am
v2
Comments
Zoltán Zörgő 21-May-13 8:48am    
Based on it's user ID. Don't you think?
Member 9815058 21-May-13 8:57am    
Ok...Now it's solved...Thanks
[no name] 22-May-13 2:24am    
if u are using authuntication then a cookies stored in your system in which you can store user id and then you can get the user id on any page when user is login by below line--
string userid=HttpContext.Current.User.Identity.Name
then u can use this id to get data....whatever u needed.

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