protected void Page_Load(object sender, EventArgs e) {
            try {
                CatID = Int32.Parse(Request.Params[PARAM_CATEGORY_ID]);
            } catch {
            }

            try {
                Direction = Request.Params[PARAM_DIRECTION];
            } catch {
            }

            controller = Module as CatalogueViewModule;
            Category cat = controller.CatalogueViewer.GetCategory(controller.Section.Node.Site.Id, controller.Section.Node.Culture, CatID);

            switch (Direction) {
                case "Up":
                    MoveUp(cat);
                    break;
                case "Down":
                    MoveDown(cat);
                    break;
                default:
                    break;
            }

            Response.Redirect(Request.UrlReferrer.ToString());
        }
        protected void Page_Load(object sender, EventArgs e) {

        lnkUpload.Click += new System.EventHandler(Upload_Click);
        lnkSave.Click += new System.EventHandler(Save_Click);
            //Display uploaded files in a repeater 
           
                controller = Module as CatalogueViewModule;
                if (!IsPostBack) {
                    documents = controller.CatalogueViewer.GetDocuments(controller.Section.Node.Site.Id, controller.Section.Node.Culture);
                    rptDocuments.DataSource = documents;
                    rptDocuments.DataBind();
                }
        }
 protected void Page_Load(object sender, EventArgs e) {
     this._page = (ModuleAdminBasePage)this.Page;
     controller = Module as CatalogueViewModule;
     hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());
     hplWeightBandingHomePage.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/ConfigureWeightBanding.aspx{0}", this._page.GetBaseQueryString());
     
     if (!IsPostBack) {
         lbStateBandings.Visible = false;
         ShowCountryList();
         ShowCountryBanding("GB");
         hplAdd.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/AddWeightBanding.aspx{0}&CountryCode={1}", this._page.GetBaseQueryString(), "GB");
     }
 }
        protected void Page_Load(object sender, EventArgs e) {
            controller = Module as CatalogueViewModule;

         
            lbSave.Click += new EventHandler(lbSave_Click);
            this._page = (ModuleAdminBasePage)this.Page;
            hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());
            hplWeightBandingHomePage.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/ConfigureWeightBanding.aspx{0}", this._page.GetBaseQueryString());
            hplWeightBandingList.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/WeightBandingList.aspx{0}", this._page.GetBaseQueryString());
            
            if (!IsPostBack) {
                DisplayEditForm();
            }
        }
        protected void Page_Load(object sender, EventArgs e) {
            controller = Module as CatalogueViewModule;
            this._page = (ModuleAdminBasePage)this.Page;

            hplDeliveryMainMenu.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/DeliveryManager.aspx{0}", this._page.GetBaseQueryString());


            county = controller.DeliveryService.GetDeliveryType("WeightBandingState");
            country = controller.DeliveryService.GetDeliveryType("WeightBandingCountry");
            lbCountryStatus.Click += new EventHandler(lbCountryStatus_Click);
            lbCountyStatus.Click += new EventHandler(lbCountyStatus_Click);
            UpdateStatus();
            hplView.NavigateUrl = String.Format("~/Modules/ECommerce/Admin/Delivery/WeightBanding/WeightBandingList.aspx{0}", this._page.GetBaseQueryString());
        }
        public static string GetBrowserUrlForProduct(ModuleAdminBasePage page, CatalogueViewModule module, long productID, string message) {

            long catID = 0;

            if (productID > 0) {

                Product product = module.CatalogueViewer.GetECommerceProduct(1, "", productID);

                if (product != null && product.Categories != null && product.Categories.Count > 0) {
                    ProductCategory pc = (ProductCategory)product.Categories[0];
                    catID = pc.CategoryID;
                }
            }

            return GetBrowserUrl(page, catID, message);
        }
        public CatalogueUrlHelper(CatalogueViewModule controller) {
            _module = controller;
		}
        protected void Page_Load(object sender, EventArgs e) {

            this.Title = "Category Editor";
            fckDescription.BasePath = this.Page.ResolveUrl("~/Support/FCKEditor/");

            ReadRequestParams();

            rptPages.ItemCommand += new System.Web.UI.WebControls.RepeaterCommandEventHandler(rptSections_ItemCommand);
            btnAddPage.Click += new EventHandler(btnAddPage_Click);
            controller = Module as CatalogueViewModule;

            ICategoryView nodeView = null;
            
            if (CatID != CATEGORY_ID_NEW) {
                nodeView = controller.CatalogueViewer.GetCategoryView(1, "en-GB", CatID);  //hack
                cat = nodeView.CurrentNode;
            } else {
                if (!IsPostBack) {
                    nodeView = controller.CatalogueViewer.GetCategoryView(1, "en-GB", ParentNodeID);//hack
                    ctlBreadCrumb.SetLinkOnCurrentNode = true;
                    ctlBreadCrumb.RenderBreadCrumbTrail(nodeView.BreadCrumbTrail);
                }
            }

            if (cat != null) {

                if (cat.Image != null) {
                    catImageUrl = cat.Image.Url;
                }

                if (!IsPostBack) {

                    IList<Node> rootNodes = Section.Node.Site.RootNodes;
                    ddlNodeList.Items.Clear();
                    ddlNodeList.Items.Add(new ListItem("-- select --", ""));

                    foreach (Node rootNode in rootNodes) {
                        AddChildNodes(ddlNodeList, rootNode);
                    }
                    BindPages();
                    fckDescription.Value = cat.Description;
                    txtCategoryName.Text = cat.Name;
                    txtCss.Text = cat.Style;
                    
                    if (cat.Image.HeightSpecified) wim.ImageHeight = cat.Image.Height.ToString();
                    if (cat.Image.WidthSpecified) wim.ImageWidth = cat.Image.Width.ToString();
                    wim.ImageUrl = WebHelper.GetImagePathWeb() + cat.Image.Url;
                    wim.WorkingDirectory = WebHelper.GetImageWorkingDirectory();
                    wimLinkImage.WorkingDirectory = wim.WorkingDirectory;

                    ctlBreadCrumb.RenderBreadCrumbTrail(nodeView.BreadCrumbTrail);
                }
            }

            if (ParentNodeID != 0) {
                this.lnkSave.Text = "Save Sub Category";
            } else {
                this.lnkSave.Text = "Save Category";
            }

            this.lnkSave.Click += new EventHandler(lnkSave_Click);
        }