コード例 #1
0
 protected override void AttachChildControls()
 {
     this.txtShipTo = (TextBox) this.FindControl("txtShipTo");
     this.txtAddress = (TextBox) this.FindControl("txtAddress");
     this.txtZipcode = (TextBox) this.FindControl("txtZipcode");
     this.txtTelPhone = (TextBox) this.FindControl("txtTelPhone");
     this.txtCellPhone = (TextBox) this.FindControl("txtCellPhone");
     this.dropRegionsSelect = (RegionSelector) this.FindControl("dropRegions");
     this.btnAddAddress = ButtonManager.Create(this.FindControl("btnAddAddress"));
     this.btnCancel = ButtonManager.Create(this.FindControl("btnCancel"));
     this.btnEditAddress = ButtonManager.Create(this.FindControl("btnEditAddress"));
     this.dtlstRegionsSelect = (Common_Address_AddressList) this.FindControl("list_Common_Consignee_ConsigneeList");
     this.lblAddressCount = (Literal) this.FindControl("lblAddressCount");
     this.btnAddAddress.Click += new EventHandler(this.btnAddAddress_Click);
     this.btnEditAddress.Click += new EventHandler(this.btnEditAddress_Click);
     this.btnCancel.Click += new EventHandler(this.btnCancel_Click);
     this.dtlstRegionsSelect.ItemCommand += new Common_Address_AddressList.CommandEventHandler(this.dtlstRegionsSelect_ItemCommand);
     PageTitle.AddSiteNameTitle("我的收货地址", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         this.lblAddressCount.Text = HiContext.Current.Config.ShippingAddressQuantity.ToString();
         this.dropRegionsSelect.DataBind();
         this.Reset();
         this.btnEditAddress.Visible = false;
         this.BindList();
     }
 }
コード例 #2
0
 protected override void AttachChildControls()
 {
     this.txtShipTo                       = (TextBox)this.FindControl("txtShipTo");
     this.txtAddress                      = (TextBox)this.FindControl("txtAddress");
     this.txtZipcode                      = (TextBox)this.FindControl("txtZipcode");
     this.txtTelPhone                     = (TextBox)this.FindControl("txtTelPhone");
     this.txtCellPhone                    = (TextBox)this.FindControl("txtCellPhone");
     this.dropRegionsSelect               = (RegionSelector)this.FindControl("dropRegions");
     this.btnAddAddress                   = ButtonManager.Create(this.FindControl("btnAddAddress"));
     this.btnCancel                       = ButtonManager.Create(this.FindControl("btnCancel"));
     this.btnEditAddress                  = ButtonManager.Create(this.FindControl("btnEditAddress"));
     this.dtlstRegionsSelect              = (Common_Address_AddressList)this.FindControl("list_Common_Consignee_ConsigneeList");
     this.lblAddressCount                 = (Literal)this.FindControl("lblAddressCount");
     this.btnAddAddress.Click            += new EventHandler(this.btnAddAddress_Click);
     this.btnEditAddress.Click           += new EventHandler(this.btnEditAddress_Click);
     this.btnCancel.Click                += new EventHandler(this.btnCancel_Click);
     this.dtlstRegionsSelect.ItemCommand += new Common_Address_AddressList.CommandEventHandler(this.dtlstRegionsSelect_ItemCommand);
     PageTitle.AddSiteNameTitle("我的收货地址", HiContext.Current.Context);
     if (!this.Page.IsPostBack)
     {
         this.lblAddressCount.Text = HiContext.Current.Config.ShippingAddressQuantity.ToString();
         this.dropRegionsSelect.DataBind();
         this.Reset();
         this.btnEditAddress.Visible = false;
         this.BindList();
     }
 }