Пример #1
0
        protected void btnDel1_Click(object sender, EventArgs e)
        {
            GA       gAdmin = new GA();
            Property pro    = new Property();

            pro.PropertyName = drpNewProname.SelectedItem.Text;
            string a = gAdmin.PoNameGetID(pro);

            if (gAdmin.DeletePropertycon(a))
            {
                this.lblCheck.Text = "删除成功!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "删除成功" + "');</script>");
            }
            else
            {
                this.lblCheck.Text = "删除失败!";
                //this.Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language='javascript'>alert('" + "删除失败" + "');</script>");
            }
        }
Пример #2
0
 /// <summary>
 /// 删除属性内容
 /// </summary>
 /// <param name="Gadmin">商品管理员对象</param>
 /// <param name="a">属性ID</param>
 /// <returns>是否删除成功</returns>
 public bool DeletePropertycon(GA Gadmin, string a)
 {
     return(Gadmin.DeletePropertycon(a));
 }