protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GobalTools.BindProductType(this.ddlProductType); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { this.Label1.Text = string.Empty; this.Label2.Text = string.Empty; GobalTools.BindProductType(this.cbProductTypeIdValue); if (Request.Params["id"] != null) { ProductInfo entity = SimpleOrmOperator.Query <ProductInfo>(Convert.ToInt32(Request.Params["id"])); WebFormHelper.SetDataToForm(this, entity); this.CKEditorControl1.Text = System.Web.HttpUtility.HtmlDecode(entity.Production); ViewState["imgstr"] = entity.Imgs; ViewState["imgmain"] = entity.ImgMain; } else { ViewState["imgstr"] = ";"; ViewState["imgmain"] = string.Empty; } } this.RefreshImgs(); }