Posted on: 4/9/2012 5:23:13 AM | Views : 362

 I'm a student and I'm learning ASP.NET.
 
I got the followig task.
Create a website (Profile.aspx) in which the User can create and edit his profile.
Well, I know how to write in a database, but how do I get the UserName oder the UserID to make a PrimaryKey?
If the user is logged in a session will be started. In this session is the UserName but I don't know how to read out the UserName with ASP.NET to make an PrimaryKey. If I would try to read out the UserName with C# I must save it in an variable and give it somehow to my form.
 
Can someone help me?
 
Go to the complete details ...