Hi,
I am using the aspnet registration template and am using it for my project to allow users to register and login using it.
Now I want to display the users "UserId" from the database, on a label immediately after registration on another page, I want to take this userId and use it, the user has to enter some information and save it on the database with that userId included as it is referenced on another table. Please help me on how do I go about displaying the UserId on a label instead of just displaying the Username on the LoginView control.
Any suggestion is welcome.
Loading
Jiteendra SampathiraoPosted Jul 1, 2011, 8:03 AM
When authentication(user login validations) process has done successfully..then you need to refer second page(some xyz.aspx)..
At the time of authentication process, all validations will happen based on user id only......
So pass this user id to second page using Query strings...
In the second page fetch the required values based user id.....
Query strings...Refer
Refer link(Login)
Link 2
you will get some idea.........
Amit ChoudharyPosted Jul 1, 2011, 7:44 AM
lblUsrName.Text= HttpContext.Current.User.Identity.Name;