Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(base.Request.QueryString["ActiveId"]))
     {
         int.TryParse(base.Request.QueryString["ActiveId"], out activeId);
     }
     LoadParameters();
     if (!Page.IsPostBack)
     {
         dropCategories.DataBind();
         dropCategories.SelectedValue = categoryId;
         BindProducts();
         PromotionInfo promotionInfoById = new PromotionInfo();
         promotionInfoById = SubsitePromoteHelper.GetPromotionInfoById(activeId);
         lblPromtion.Text  = promotionInfoById.Name;
         ProductIds        = SubsitePromoteHelper.GetPromotionProducts(activeId);
         BindPromoteProducts();
     }
     CheckBoxColumn.RegisterClientCheckEvents(Page, Page.Form.ClientID);
 }