protected void LogIn_Click(object sender, EventArgs e)
{
Session.Add("uname", txtUname .Text );
Session.Add("pass", txtPass .Text );
DataTable dt = BusinessLayer.GetData("select * from tblLogin where uid='" + txtUname .Text + "' and Upwd='" + txtPass .Text + "'");
if (dt.Rows.Count == 0)
{
//lblmessage.Text = "Invalid username or password";
Response.Write("<script language=javascript>alert('You Are Invalid User')</script>");
Response .Redirect ("Home.aspx");
}
}
protected void lnkbtnlogout_Click(object sender, EventArgs e)
{
Session.Abandon();
Session.Clear();
Response.Redirect("~/Default.aspx");
}