private void btnLogin_Click(object sender, EventArgs e) { string userId = string.Empty; objBll = new WarringtonBll.WarringtonBll(); if (objBll.UserIsAuthenticated(txtUserId.Text.Trim(), txtPassword.Text.Trim(), out userId)) { Utility.SetSessionValue(Constants._USERISLOGGEDIN, true); Utility.SetSessionValue(Constants._LOGINUSERID, userId); Response.Redirect(GetPageName()); } else { ScriptManager.RegisterStartupScript(this, this.GetType(), "msg", "alert('The Phone no and Pin you entered don't match. User authentication fails..')", true); } }