protected void On_LoggingIn(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { if (!Validate()) { e.Cancel = true; } }
void UserCreator_CreatingUser(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { if (IsEditorOrAdmin(UserCreator.UserName)) { cvError.IsValid = false; cvError.ErrorMessage = "Invalid user name."; e.Cancel = true; } }
protected void createUserWizard_CreatingUser(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { if (Page.IsValid) { this.StatusMessage.Text += "reCAPTCHA validated successfully.<br />"; } else { // this section is not required, CreateUserWizard will not call this method if a validation error occurs. } }
protected void OnLoggingIn(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { if (!IsValidEmail(Login1.UserName)) { Login1.InstructionText = "You must enter a valid e-mail address."; e.Cancel = true; } else { Login1.InstructionText = String.Empty; } }
protected void On_LoggingIn(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { if (IsLocalhost) { e.Cancel = false; return; } if (!Validate()) { e.Cancel = true; } }
protected void LoginStatus_LoggingOut(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { Session["cartList"] = new List <Book>(); }
protected void LoginStatus1_LoggingOut(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { string redirectUrl = ConfigurationManager.AppSettings["HCMSPortalBaseURL"].ToString(); base.FormSignOut(redirectUrl); }
private void LogoutClicked(object Source, CommandEventArgs e) { LoginCancelEventArgs args = new LoginCancelEventArgs(); this.OnLoggingOut(args); if (!args.Cancel) { CurrentAuthenticationService.SignOut(); this.Page.Response.Clear(); this.Page.Response.StatusCode = 200; this.OnLoggedOut(EventArgs.Empty); switch (this.LogoutAction) { case System.Web.UI.WebControls.LogoutAction.Refresh: if ((this.Page.Form == null) || !string.Equals(this.Page.Form.Method, "get", StringComparison.OrdinalIgnoreCase)) { this.Page.Response.Redirect(new Url(Page.Request.RawUrl).PathAndQuery, false); return; } this.Page.Response.Redirect(this.Page.Request.Path, false); return; case System.Web.UI.WebControls.LogoutAction.Redirect: { string logoutPageUrl = this.LogoutPageUrl; if (string.IsNullOrEmpty(logoutPageUrl)) logoutPageUrl = CurrentAuthenticationService.LoginUrl; else logoutPageUrl = base.ResolveClientUrl(logoutPageUrl); this.Page.Response.Redirect(logoutPageUrl, false); return; } case System.Web.UI.WebControls.LogoutAction.RedirectToLoginPage: this.Page.Response.Redirect(CurrentAuthenticationService.LoginUrl, false); return; } } }
protected virtual void OnLoggingOut(LoginCancelEventArgs e) { if (LoggingOut != null) LoggingOut(this, e); }
//protected override protected override void OnCreatingUser(System.Web.UI.WebControls.LoginCancelEventArgs e) { this.UserNameRequiredErrorMessage = "lal lgsdhsdhsd ala "; //base.OnCreatingUser(e); }
protected void CreateUserWizard1_CreatingUser(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { }
protected void Login_LoggingIn(object sender, System.Web.UI.WebControls.LoginCancelEventArgs e) { BitacoraHelper.GrabarEvento("LOGIN USUARIO", ControlLogin.UserName); }