protected void btnSubmit_Click(object sender, EventArgs e) { try { User clsUser = null; if (this.Userid.Text == "") { this.Userid.Focus(); throw new Exception("Please Enter User Name"); } if (this.txtPssword.Text == "") { this.txtPssword.Focus(); throw new Exception("Please Enter Password"); } clsUser = m_SecuritySys.checkUser(this.Userid.Text, m_SecuritySys.EncrypyPassword(this.txtPssword.Text)); if (clsUser != null) { if (clsUser.intStatus == 2 || clsUser.intStatus == 3) { } else { Session["userid"] = clsUser.strUserId; Session["username"] = clsUser.strUserName; // Session["userstream"] = clsUser.userStream; Response.Redirect("~/Default.aspx",true); } } else { Userid.Focus(); throw new Exception("Invalid user entry, Please try again"); } } catch (System.Threading.ThreadAbortException ex) { DisplayCustomMessage(ex.Message); } finally { if (connection != null) connection.Dispose(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)