Display UserName And Last Login in Asp.Net MasterPage |
|
Answered By
Moderator1
on
2/20/2010 9:13:20 PM |
|
|
|
|
Hi,
After successful login, store the User Name and Last Login details of the user in Session Variable. Then in the master page write code to display it with the below syntax.
if (Session.Count > 0)
{
lblUserName.Text = "Logged in as " + Session["UserName"].ToString();
lblLastLogin.Text = "Logged in as " + Session["LastLogin"].ToString();
}
Please note that provide meaningful Subject for your questions and if you have any more doubts post it below this answer. |
|
|
|
|
|
Plz Ans asap |
|
Answered By
Irfan
on
1/4/2012 10:37:32 PM |
|
|
|
|
How can i store last login user information in session and how can i get back the session information and show it when a new user login.
I have to store the last user information who has made changes in the application rather than just visiting it!
plz send me as soon as possible. |
|
|
|