Пример #1
0
        protected void Add_Click(object sender, EventArgs e)
        {
            if (Session["uid"] == null)
            {
                return;
            }
            int          userid  = (int)Session["uid"];
            AddressModel address = new AddressModel();

            address.add     = txtAdd.Text;
            address.name    = txtName.Text;
            address.tel     = txtTel.Text;
            address.user_id = userid;
            int currentcount = AddressBLL.GetAddressNumByUserID(userid);

            if (currentcount == 0)
            {
                address.isdefault = 1;
            }
            Modal.Show(this.Page, AddressBLL.AddAdderss(address), 1000, "/profile.aspx");
        }
Пример #2
0
 protected void Default_Click(object sender, EventArgs e)
 {
     Modal.Show(this.Page, AddressBLL.SetDefaultAddress(AddressInThisControl), 1000, "/profile.aspx");
 }