i created one master page and login page.once i login ,im able to get the username.
Example:
if (Session["usename"] != null)
{
lbllogout.Text = "Welcome :" + Session["usename"].ToString();
}
Now,i want to get the complete details of user once i login(i want to show it in gridview)
Vignesh KumarPosted Jun 17, 2013, 6:44 AM
http://www.asp.net/web-forms/tutorials/security/membership/storing-additional-user-information-cs
KRayudu VPosted Jun 17, 2013, 6:42 AM
i want to get all the details of user once i login
for example:
i have registration table in that,i have fields
username,password,emailid,firstname,lastname
suppose if i login with UserName:praven,Password:asdfg
as soon i login,i want to get all the details of "praveen" in gridview
Vignesh KumarPosted Jun 17, 2013, 6:30 AM
I used this piece of code and worked. Give it a try!
//Gets the name if authenticated
if (User.Identity.IsAuthenticated)
Label1.Text = User.Identity.Name;
else
Label1.Text = "No user identity available";