protected void btnLogin_Click(object sender, EventArgs e) { Login lg = new Login(); if (lg.EmpLogin(txtUserName.Text, txtPassWord.Text)) { dv.Visible = false; TheSessions.EmploeeID = txtUserName.Text; lblRong.Visible = false; Response.Redirect(@"EmpInterface\MainPage.aspx"); } else { TheSessions.EmploeeID = null; lblRong.Visible = true; } }