protected void SubmitButtonClick(object sender, EventArgs e) { string EmailId = txtEmailId.Text.Trim(); string Password = txtCorrectPassword.Text.Trim(); if (UserRespository.ExecuteLogin(EmailId, Password) == 1) { //Session["Email"] = Email; Response.Write("SuccessFully login"); Response.Redirect("HomePage.aspx"); } else { Response.Write("Invalid email and password"); } }