protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business(); string nextURl = null; if (!string.IsNullOrEmpty(Request[RequestMSG.UserName])) { txtEmail.Text = FormBase.UrlDecode(Request[RequestMSG.UserName]); } if (!string.IsNullOrEmpty(Request[RequestMSG.NextURL])) { nextURl = FormBase.UrlDecode(Request[RequestMSG.NextURL]); } if (!string.IsNullOrEmpty(Request[RequestMSG.Password])) { txtPass.Text = FormBase.UrlDecode(Request[RequestMSG.Password]); } if (txtEmail.Text != string.Empty && txtPass.Text != string.Empty) { userAuthorize.Login(txtEmail.Text, txtPass.Text, nextURl); } if (SysProperty.Client.Roles[RoleType.User]) { Response.Redirect(ServerDirectory.Host + "/Dashboard.aspx"); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business(); string nextURl = null; if (!string.IsNullOrEmpty(Request[RequestMSG.UserName])) { txtEmail.Text = FormBase.UrlDecode(Request[RequestMSG.UserName]); } if (!string.IsNullOrEmpty(Request[RequestMSG.NextURL])) { nextURl = FormBase.UrlDecode(Request[RequestMSG.NextURL]); } if (!string.IsNullOrEmpty(Request[RequestMSG.Password])) { txtPass.Text = FormBase.UrlDecode(Request[RequestMSG.Password]); } if (txtEmail.Text != string.Empty && txtPass.Text != string.Empty) { userAuthorize.Login(txtEmail.Text, txtPass.Text, nextURl); } if (SysProperty.Client.Roles[RoleType.User]) Response.Redirect(ServerDirectory.Host + "/Dashboard.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (SysProperty.Client.UserID == 0) { UserAuthorizeMan_Business u = new UserAuthorizeMan_Business(); u.Login("*****@*****.**", "123456", ServerDirectory.Host + "/HosseinTest.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { if (SysProperty.Client.UserID ==0) { UserAuthorizeMan_Business u = new UserAuthorizeMan_Business(); u.Login("*****@*****.**", "123456", ServerDirectory.Host + "/HosseinTest.aspx"); } }
protected void btnLogin_Click(object sender, EventArgs e) { UserAuthorizeMan_Business userAuthorize = new UserAuthorizeMan_Business(); userAuthorize.Login(txtEmail.Text, txtPass.Text); }