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 = (WebCalendar) 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.btnOK1.Click += new EventHandler(this.btnOK1_Click); PageTitle.AddSiteNameTitle("个人信息", HiContext.Current.Context); if (!this.Page.IsPostBack) { Member user = HiContext.Current.User as Member; if (user != null) { this.BindData(user); } } }
protected virtual void ShowMessage(string msg, bool success, string goUrl = "", int waitTime = 1) { this.smallStatus = (SmallStatusMessage)this.FindControl("Status"); if (this.smallStatus != null) { this.smallStatus.Success = success; this.smallStatus.Text = msg; this.smallStatus.Visible = true; if (!string.IsNullOrEmpty(goUrl) && !this.Page.ClientScript.IsClientScriptBlockRegistered("ServerMessageScript")) { string str = " setTimeout(function(){ window.location.href='" + goUrl + "'}," + waitTime * 1000 + ");"; this.Page.ClientScript.RegisterStartupScript(base.GetType(), "ServerMessageScript", "<script language='JavaScript' defer='defer'>" + str + "</script>"); } } else { string str2 = string.Format("ShowMsg(\"{0}\", {1})", msg, success ? "true" : "false"); if (!this.Page.ClientScript.IsClientScriptBlockRegistered("ServerMessageScript")) { string str3 = ""; if (!string.IsNullOrEmpty(goUrl)) { str3 = " setTimeout(function(){ window.location.href='" + goUrl + "'}," + waitTime * 1000 + ");"; } this.Page.ClientScript.RegisterStartupScript(base.GetType(), "ServerMessageScript", "<script language='JavaScript' defer='defer'>setTimeout(function(){" + str2 + str3 + "},300);</script>"); } } }
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 ShowMessage(string msg, bool success) { this.smallStatus = (SmallStatusMessage)this.FindControl("Status"); if (this.smallStatus != null) { this.smallStatus.Success = success; this.smallStatus.Text = msg; this.smallStatus.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.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"); PageTitle.AddSiteNameTitle("修改交易密码", HiContext.Current.Context); this.btnOK2.Click += new EventHandler(this.btnOK2_Click); if (!this.Page.IsPostBack) { Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", 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 = (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 = (HtmlTableRow) this.FindControl("tblrOldQuestion"); this.tblrOldAnswer = (HtmlTableRow) this.FindControl("tblrOldAnswer"); PageTitle.AddSiteNameTitle("修改密码保护", HiContext.Current.Context); this.btnOK3.Click += new EventHandler(this.btnOK3_Click); if (!this.Page.IsPostBack) { this.BindAnswerAndQuestion(); Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.LkUpdateTradePassword.Visible = false; } } }
protected virtual void ShowMessage(string msg, bool success) { this.smallStatus = (SmallStatusMessage) this.FindControl("Status"); if (this.smallStatus != null) { this.smallStatus.Success = success; this.smallStatus.Text = msg; this.smallStatus.Visible = true; } }