예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SetNav("商品管理");
     if (!Page.IsPostBack)
     {
         GoodsBLL.BindGoodsCat(ddlCat);
         BindData();
     }
 }
예제 #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (GetGoodsID() == 0)
        {
            SetNav("添加商品");
            ltTips.Text    = "在这里,您可以添加商品";
            btnSubmit.Text = "确定添加";
        }
        else
        {
            SetNav("修改商品");
            ltTips.Text    = "在这里,您可以修改商品";
            btnSubmit.Text = "确定修改";
            if (!Page.IsPostBack)
            {
                BindModel();
            }
        }

        if (!Page.IsPostBack)
        {
            GoodsBLL.BindGoodsCat(ddlCat, false);
        }
    }