protected void btnlogin_Click(objec sender,EventArgs e)
{
Userclass u=new Userclass();
u.Username=txtusername.text.trim();
u.Password=txtpassword.text.trim();
if(u.checkUser())
{
Session["youreSessionName"]=u.Username;
Response.redirect("./Home.aspx")
}
else
{
lblIsUser.text=" User DOes not Exist";
}
you will use session["yoursessioname"] as a user name in the project for other information about the logged user from database or somewhere