i need a code for user login time
-
i created one webform in c# that contains login name and password if u r eligible person then the redirect form will be come.i hav a problem for this redirect page..i want to knoe the login time from the user.can u help me???
sureshkumaran
-
i created one webform in c# that contains login name and password if u r eligible person then the redirect form will be come.i hav a problem for this redirect page..i want to knoe the login time from the user.can u help me???
sureshkumaran
hi, just try this: after entering the user id & Pwd, just use this code to know the user login time. DateTime LoginTime= new DateTime(); LoginTime=DateTime.Now; private string lstrUserID; // To hold login user id private string lstrPassword; // To hold login Password this.lblErrorMessage.Text = ""; lstrUserID = txtUserID.Text.Trim();// Get the Correct User Login Id lstrPassword = txtPassword.Text.Trim(); // Get the Correct User Password < write the code for validating the User> if the credentials are valid (valid user) then, to redirect the user Response.Redirect("MainMenu.aspx"); } else { lblErrorMessage.Text = "Invalid UserID / Password";(//to display the error message i am using label here, just use according to ur page) } Thanks, Rahi
If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "
-
i created one webform in c# that contains login name and password if u r eligible person then the redirect form will be come.i hav a problem for this redirect page..i want to knoe the login time from the user.can u help me???
sureshkumaran
What is your problem of redirect page?
suresh008 wrote:
i want to knoe the login time from the user.can u help me
just get the system date... << >>