Esempio n. 1
0
        private void EditCategory(string categoryID)
        {
            CatalogNavigation editNav = new CatalogNavigation
            {
                Edit       = "Category",
                CategoryID = int.Parse(categoryID)
            };

            Response.Redirect(editNav.GetEditUrl(ModuleId));
        }
Esempio n. 2
0
        protected void btnEdit_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton button = (sender as ImageButton);

            if (button != null)
            {
                CatalogNavigation editNav = new CatalogNavigation(ModuleId, Request.QueryString)
                {
                    ProductID = int.Parse(button.CommandArgument),
                    Edit      = "Product"
                };
                Response.Redirect(editNav.GetEditUrl());
            }
        }