// Write out the DataSource properties and methods // Write out event methods for the page events // event handler for Button public void ForgetSignInButton_Click_Base(object sender, EventArgs args) { SignInState state = new SignInState(); BaseClasses.Utils.NetUtils.SetCookie(NetUtils.CookieUserName(), ""); BaseClasses.Utils.NetUtils.SetCookie(NetUtils.CookiePassword(), ""); state.IsUNToRemember = false; state.IsPassToRemember = false; BaseClasses.Utils.NetUtils.SetCookie(NetUtils.CookieRememberName(), Boolean.FalseString); BaseClasses.Utils.NetUtils.SetCookie(NetUtils.CookieRememberPassword(), Boolean.FalseString); try { } catch (Exception ex) { this.ErrorOnPage = true; // Report the error message to the end user BaseClasses.Utils.MiscUtils.RegisterJScriptAlert(this, "BUTTON_CLICK_MESSAGE", ex.Message); } finally { } }
private void StateInit() { UI.SignInState state = new UI.SignInState(); string rUser = BaseClasses.Utils.NetUtils.GetCookie(NetUtils.CookieRememberName()); if ((rUser != null) && (rUser.ToLower() == "true")) { state.IsUNToRemember = true; } else { state.IsUNToRemember = false; } string rPassword = BaseClasses.Utils.NetUtils.GetCookie(NetUtils.CookieRememberPassword()); if ((rPassword != null) && (rPassword.ToLower() == "true")) { state.IsPassToRemember = true; } else { state.IsPassToRemember = false; } }