Session["User"]= txtUserName.Text;
String strsql2 = "UPDATE tblUser SET LastLog=" + DateTime.Now
+ " WHERE UserName=" + Session["User"] + "";
SqlCommand sqlcomm2 = new SqlCommand(strsql2, sqlconn);
Response.Redirect("mailbox.aspx");
Last edited by a moderator: