示例#1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (base.Request.QueryString["ProductID"] != null)
         {
             int ProductID = int.Parse(base.Request.QueryString["ProductID"]);
             Chain.BLL.ProductCenter   bllProduct   = new Chain.BLL.ProductCenter();
             Chain.Model.ProductCenter modelProduct = bllProduct.GetModel(ProductID);
             this.txtProductDesc.Value       = modelProduct.ProductDesc;
             this.txtProductName.Value       = modelProduct.ProductName;
             this.txtProductRemark.Value     = modelProduct.ProductRemark;
             this.imgProductPhoto.Src        = modelProduct.ProductPhoto.ToString();
             this.txtUpdateProductName.Value = modelProduct.ProductPhoto;
             this.txtProductID.Value         = ProductID.ToString();
             this.sltClassID.Value           = modelProduct.ClassID.ToString();
             this.ltlTitle.Text = "微官网   >   产品管理   >   产品编辑 ";
         }
         else
         {
             this.ltlTitle.Text = "微官网   >   产品管理   >   产品新增 ";
         }
         this.BindClassInfo(this.sltClassID);
     }
 }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         if (base.Request.QueryString["ProductID"] != null)
         {
             int ProductID = int.Parse(base.Request.QueryString["ProductID"]);
             Chain.BLL.ProductCenter   bllProduct   = new Chain.BLL.ProductCenter();
             Chain.Model.ProductCenter modelProduct = bllProduct.GetModel(ProductID);
             this.spProductDesc.InnerHtml = modelProduct.ProductDesc;
         }
     }
 }