protected override void AttachChildControls() { this.txtOldTransactionPassWord = (TextBox)this.FindControl("txtOldTransactionPassWord"); this.txtNewTransactionPassWord = (TextBox)this.FindControl("txtNewTransactionPassWord"); this.txtNewTransactionPassWord2 = (TextBox)this.FindControl("txtNewTransactionPassWord2"); this.btnOK2 = ButtonManager.Create(this.FindControl("btnOK2")); this.StatusTransactionPass = (SmallStatusMessage)this.FindControl("StatusTransactionPass"); this.textPasswordView = (Literal)this.FindControl("textPasswordView"); PageTitle.AddSiteNameTitle("修改交易密码"); this.btnOK2.Click += this.btnOK2_Click; if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (string.IsNullOrWhiteSpace(user.TradePassword)) { this.Page.Response.Redirect($"/user/OpenBalance.aspx?ReturnUrl={HttpContext.Current.Request.Url}"); } if (user.PasswordSalt == "Open") { this.textPasswordView.Text = "设置登录密码"; } else { this.textPasswordView.Text = "修改登录密码"; } } }
protected override void AttachChildControls() { this.txtRealName = (System.Web.UI.WebControls.TextBox) this.FindControl("txtRealName"); this.txtEmail = (System.Web.UI.WebControls.TextBox) this.FindControl("txtEmail"); this.dropRegionsSelect = (RegionSelector)this.FindControl("dropRegions"); this.gender = (GenderRadioButtonList)this.FindControl("gender"); this.calendDate = (WebCalendar)this.FindControl("calendDate"); this.txtAddress = (System.Web.UI.WebControls.TextBox) this.FindControl("txtAddress"); this.txtQQ = (System.Web.UI.WebControls.TextBox) this.FindControl("txtQQ"); this.txtMSN = (System.Web.UI.WebControls.TextBox) this.FindControl("txtMSN"); this.txtTel = (System.Web.UI.WebControls.TextBox) this.FindControl("txtTel"); this.txtHandSet = (System.Web.UI.WebControls.TextBox) this.FindControl("txtHandSet"); this.btnOK1 = ButtonManager.Create(this.FindControl("btnOK1")); this.Statuses = (SmallStatusMessage)this.FindControl("Statuses"); this.btnOK1.Click += new System.EventHandler(this.btnOK1_Click); PageTitle.AddSiteNameTitle("个人信息", HiContext.Current.Context); if (!this.Page.IsPostBack) { Member member = HiContext.Current.User as Member; if (member != null) { this.BindData(member); } } }
protected override void AttachChildControls() { this.litOldQuestion = (Literal)this.FindControl("litOldQuestion"); this.txtOdeAnswer = (TextBox)this.FindControl("txtOdeAnswer"); this.txtQuestion = (TextBox)this.FindControl("txtQuestion"); this.txtAnswer = (TextBox)this.FindControl("txtAnswer"); this.LkUpdateTradePassword = (HtmlGenericControl)this.FindControl("one2"); this.btnOK3 = ButtonManager.Create(this.FindControl("btnOK3")); this.StatusPasswordProtection = (SmallStatusMessage)this.FindControl("StatusPasswordProtection"); this.tblrOldQuestion = (Panel)this.FindControl("tblrOldQuestion"); this.tblrOldAnswer = (Panel)this.FindControl("tblrOldAnswer"); this.textPasswordView = (Literal)this.FindControl("textPasswordView"); PageTitle.AddSiteNameTitle("修改密码保护"); this.btnOK3.Click += this.btnOK3_Click; if (!this.Page.IsPostBack) { this.BindAnswerAndQuestion(); MemberInfo user = HiContext.Current.User; if (string.IsNullOrWhiteSpace(user.TradePassword)) { this.LkUpdateTradePassword.Visible = false; } if (user.PasswordSalt == "Open") { this.textPasswordView.Text = "设置登录密码"; } else { this.textPasswordView.Text = "修改登录密码"; } } }
protected override void AttachChildControls() { this.txtRealName = (TextBox)this.FindControl("txtRealName"); this.txtEmail = (TextBox)this.FindControl("txtEmail"); this.dropRegionsSelect = (RegionSelector)this.FindControl("dropRegions"); this.gender = (GenderRadioButtonList)this.FindControl("gender"); this.calendDate = (CalendarPanel)this.FindControl("calendDate"); this.txtAddress = (TextBox)this.FindControl("txtAddress"); this.txtQQ = (TextBox)this.FindControl("txtQQ"); this.txtMSN = (TextBox)this.FindControl("txtMSN"); this.txtTel = (TextBox)this.FindControl("txtTel"); this.txtHandSet = (TextBox)this.FindControl("txtHandSet"); this.btnOK1 = ButtonManager.Create(this.FindControl("btnOK1")); this.Statuses = (SmallStatusMessage)this.FindControl("Statuses"); this.hidePicture = (HiddenField)this.FindControl("fmSrc"); this.smallpic = (Image)this.FindControl("smallpic"); this.btnOK1.Click += this.btnOK1_Click; PageTitle.AddSiteNameTitle("个人信息"); if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (user.UserId != 0) { this.BindData(user); } } }
protected virtual void ShowMessage(SmallStatusMessage state, string msg, bool success) { if (state != null) { state.Success = success; state.Text = msg; state.Visible = true; } }
protected virtual void ShowMsgs(SmallStatusMessage state, string string_0, bool success) { if (state != null) { state.Success = success; state.Text = string_0; state.Visible = true; } }
protected override void AttachChildControls() { this.coupons = (Common_Coupon_CouponList)this.FindControl("Common_Coupons_CouponsList"); this.txtCoupon = (TextBox)this.FindControl("txtCoupon"); this.status = (SmallStatusMessage)this.FindControl("status"); this.btnAddCoupon = ButtonManager.Create(this.FindControl("btnAddCoupon")); this.btnAddCoupon.Click += new EventHandler(this.btnAddCoupon_Click); new HyperLink(); if (!this.Page.IsPostBack) { this.BindCoupons(); } }
protected override void AttachChildControls() { this.coupons = (Common_Coupon_CouponList)this.FindControl("Common_Coupons_CouponsList"); this.txtCoupon = (System.Web.UI.WebControls.TextBox) this.FindControl("txtCoupon"); this.status = (SmallStatusMessage)this.FindControl("status"); this.btnAddCoupon = ButtonManager.Create(this.FindControl("btnAddCoupon")); this.selectCouponStatus = (System.Web.UI.HtmlControls.HtmlSelect) this.FindControl("selectCouponStatus"); this.imgbtnSearch = (System.Web.UI.WebControls.ImageButton) this.FindControl("imgbtnSearch"); this.pager = (Pager)this.FindControl("pager"); this.btnAddCoupon.Click += new System.EventHandler(this.btnAddCoupon_Click); this.imgbtnSearch.Click += new System.Web.UI.ImageClickEventHandler(this.imgbtnSearch_Click); new System.Web.UI.WebControls.HyperLink(); if (!this.Page.IsPostBack) { this.BindCoupons(); } }
protected override void AttachChildControls() { this.status = (SmallStatusMessage)this.FindControl("status"); this.txtOdlPasswordChange = (TextBox)this.FindControl("txtOdlPasswordChange"); this.txtNewPasswordChange = (TextBox)this.FindControl("txtNewPasswordChange"); this.txtNewPassword2Change = (TextBox)this.FindControl("txtNewPassword2Change"); this.txtNewPassword = (TextBox)this.FindControl("txtNewPassword"); this.txtNewPassword2 = (TextBox)this.FindControl("txtNewPassword2"); this.btnChangePassword = ButtonManager.Create(this.FindControl("btnChangePassword")); this.btnSetPassword = ButtonManager.Create(this.FindControl("btnSetPassword")); this.LkUpdateTradePassword = (HtmlGenericControl)this.FindControl("one2"); this.setpwdPanel = (HtmlGenericControl)this.FindControl("setpwdPanel"); this.changepwdPanel = (HtmlGenericControl)this.FindControl("changepwdPanel"); this.textPasswordView = (Literal)this.FindControl("textPasswordView"); this.passwordText = (Literal)this.FindControl("passwordText"); this.btnChangePassword.Click += this.btnChangePassword_Click; this.btnSetPassword.Click += this.btnSetPassword_Click; if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (user != null) { if (string.IsNullOrWhiteSpace(user.TradePassword)) { this.LkUpdateTradePassword.Visible = false; } if (user.PasswordSalt == "Open") { this.setpwdPanel.Visible = true; this.changepwdPanel.Visible = false; this.textPasswordView.Text = "设置登录密码"; this.passwordText.Text = "设置登录密码"; PageTitle.AddSiteNameTitle("设置登录密码"); } else { this.changepwdPanel.Visible = true; this.setpwdPanel.Visible = false; this.textPasswordView.Text = "修改登录密码"; this.passwordText.Text = "修改登录密码"; PageTitle.AddSiteNameTitle("修改登录密码"); } } } }
protected override void AttachChildControls() { this.txtOldTransactionPassWord = (System.Web.UI.WebControls.TextBox) this.FindControl("txtOldTransactionPassWord"); this.txtNewTransactionPassWord = (System.Web.UI.WebControls.TextBox) this.FindControl("txtNewTransactionPassWord"); this.txtNewTransactionPassWord2 = (System.Web.UI.WebControls.TextBox) this.FindControl("txtNewTransactionPassWord2"); this.btnOK2 = ButtonManager.Create(this.FindControl("btnOK2")); this.StatusTransactionPass = (SmallStatusMessage)this.FindControl("StatusTransactionPass"); PageTitle.AddSiteNameTitle("修改交易密码"); this.btnOK2.Click += new System.EventHandler(this.btnOK2_Click); if (!this.Page.IsPostBack) { Member member = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!member.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", System.Web.HttpContext.Current.Request.Url)); } } }
protected override void AttachChildControls() { this.status = (SmallStatusMessage)this.FindControl("status"); this.txtOdlPassword = (TextBox)this.FindControl("txtOdlPassword"); this.txtNewPassword = (TextBox)this.FindControl("txtNewPassword"); this.txtNewPassword2 = (TextBox)this.FindControl("txtNewPassword2"); this.btnChangePassword = ButtonManager.Create(this.FindControl("btnChangePassword")); this.LkUpdateTradePassword = (HtmlGenericControl)this.FindControl("one2"); PageTitle.AddSiteNameTitle("修改登录密码", HiContext.Current.Context); this.btnChangePassword.Click += new EventHandler(this.btnChangePassword_Click); if (!this.Page.IsPostBack) { Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.LkUpdateTradePassword.Visible = false; } } }
protected override void AttachChildControls() { this.litOldQuestion = (System.Web.UI.WebControls.Literal) this.FindControl("litOldQuestion"); this.txtOdeAnswer = (System.Web.UI.WebControls.TextBox) this.FindControl("txtOdeAnswer"); this.txtQuestion = (System.Web.UI.WebControls.TextBox) this.FindControl("txtQuestion"); this.txtAnswer = (System.Web.UI.WebControls.TextBox) this.FindControl("txtAnswer"); this.LkUpdateTradePassword = (System.Web.UI.HtmlControls.HtmlGenericControl) this.FindControl("one2"); this.btnOK3 = ButtonManager.Create(this.FindControl("btnOK3")); this.StatusPasswordProtection = (SmallStatusMessage)this.FindControl("StatusPasswordProtection"); this.tblrOldQuestion = (System.Web.UI.WebControls.Panel) this.FindControl("tblrOldQuestion"); this.tblrOldAnswer = (System.Web.UI.WebControls.Panel) this.FindControl("tblrOldAnswer"); PageTitle.AddSiteNameTitle("修改密码保护"); this.btnOK3.Click += new System.EventHandler(this.btnOK3_Click); if (!this.Page.IsPostBack) { this.BindAnswerAndQuestion(); Member member = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!member.IsOpenBalance) { this.LkUpdateTradePassword.Visible = false; } } }
protected override void AttachChildControls() { this.Statuses = (SmallStatusMessage)this.FindControl("Statuses"); this.txtBindUserName = (TextBox)this.FindControl("txtBindUserName"); this.txtBindPassword = (TextBox)this.FindControl("txtBindPassword"); this.btnLogin = (LinkButton)this.FindControl("btnLogin"); this.btnBindingLogin = ButtonManager.Create(this.FindControl("btnBindingLogin")); this.ddlPlugins = (DropDownList)this.FindControl("ddlPlugins"); this.chkSaveLoginInfo = (CheckBox)this.FindControl("chkSaveLoginInfo"); this.openIdHF = (HiddenField)this.FindControl("openId"); this.HIGW = (HiddenField)this.FindControl("HIGW"); this.hidNickName = (HiddenField)this.FindControl("hidNickName"); this.hidUnionId = (HiddenField)this.FindControl("hidUnionId"); this.nameTitle = (Literal)this.FindControl("NameTitle"); this.hidIsOpenGeetest = (HiddenField)this.FindControl("hidIsOpenGeetest"); this.hidIsValidateEmail = (HiddenField)this.FindControl("hidIsValidateEmail"); SiteSettings siteSettings = HiContext.Current.SiteSettings; this.hidIsValidateEmail.Value = (siteSettings.IsNeedValidEmail ? "1" : "0"); this.hidIsOpenGeetest.Value = (siteSettings.IsOpenGeetest ? "1" : "0"); this.divRealName = (HtmlGenericControl)this.FindControl("divRealName"); this.divBirthday = (HtmlGenericControl)this.FindControl("divBirthday"); this.divSex = (HtmlGenericControl)this.FindControl("divSex"); this.divGeetest = (HtmlGenericControl)this.FindControl("divGeetest"); this.divGeetest1 = (HtmlGenericControl)this.FindControl("divGeetest1"); this.divimgcode = (HtmlGenericControl)this.FindControl("divimgcode"); this.divimgcode1 = (HtmlGenericControl)this.FindControl("divimgcode1"); this.divRealNametip = (HtmlGenericControl)this.FindControl("divRealNametip"); this.divBirthdaytip = (HtmlGenericControl)this.FindControl("divBirthdaytip"); this.labNickName = (Label)this.FindControl("labNickName"); this.hidHeadImage = (HiddenField)this.FindControl("hidHeadImage"); this.phoneBindPanel = (HtmlGenericControl)this.FindControl("phoneBindPanel"); this.userBindPanel = (HtmlGenericControl)this.FindControl("userBindPanel"); if (siteSettings.RegistExtendInfo.Contains("RealName")) { this.divRealName.Visible = true; this.divRealNametip.Visible = true; } else { this.divRealName.Visible = false; this.divRealNametip.Visible = false; } if (siteSettings.RegistExtendInfo.Contains("Sex")) { this.divSex.Visible = true; } if (siteSettings.RegistExtendInfo.Contains("Birthday")) { this.divBirthday.Visible = true; this.divBirthdaytip.Visible = true; } else { this.divBirthday.Visible = false; this.divBirthdaytip.Visible = false; } if (siteSettings.IsSurportEmail && siteSettings.IsSurportPhone && siteSettings.SMSEnabled && !string.IsNullOrEmpty(siteSettings.SMSSettings)) { this.nameTitle.Text = "邮箱/手机:"; } else if (!siteSettings.IsSurportEmail && (!siteSettings.IsSurportPhone || !siteSettings.SMSEnabled || string.IsNullOrEmpty(siteSettings.SMSSettings))) { this.nameTitle.Text = "邮箱:"; } else if (siteSettings.IsSurportEmail && (!siteSettings.IsSurportPhone || !siteSettings.SMSEnabled || string.IsNullOrEmpty(siteSettings.SMSSettings))) { this.nameTitle.Text = "邮箱:"; } else if (!siteSettings.IsSurportEmail && siteSettings.IsSurportPhone && siteSettings.SMSEnabled && !string.IsNullOrEmpty(siteSettings.SMSSettings)) { this.nameTitle.Text = "手机:"; } if (this.Page.Request.UrlReferrer != (Uri)null && !string.IsNullOrEmpty(this.Page.Request.UrlReferrer.OriginalString)) { OpenIdEntry.ReturnURL = this.Page.Request.UrlReferrer.OriginalString; } this.txtBindUserName.Focus(); this.openIdType = Globals.StripAllTags(base.GetParameter("HIGW", false)); if (!string.IsNullOrEmpty(this.openIdType)) { this.openIdType = this.openIdType.ToLower().Replace("_", "."); } PageTitle.AddSiteNameTitle("信任登录"); this.btnLogin.Click += this.btnLogin_Click; this.btnBindingLogin.Click += this.btnBindingLogin_Click; if (!siteSettings.IsOpenGeetest) { this.divGeetest.Style.Add("display", "none"); this.divimgcode.Style.Add("display", "block"); this.divGeetest1.Style.Add("display", "none"); this.divimgcode1.Style.Add("display", "block"); } else { this.divGeetest.Style.Add("display", "block"); this.divimgcode.Style.Add("display", "none"); this.divGeetest1.Style.Add("display", "block"); this.divimgcode1.Style.Add("display", "none"); } if (!this.Page.IsPostBack) { if (siteSettings.QuickLoginIsForceBindingMobbile) { this.userBindPanel.Visible = false; this.phoneBindPanel.Visible = true; } else { this.phoneBindPanel.Visible = false; this.userBindPanel.Visible = true; } this.OpenIdEntryInit(); } }