private void EditCategory(string categoryID) { CatalogNavigation editNav = new CatalogNavigation { Edit = "Category", CategoryID = int.Parse(categoryID) }; Response.Redirect(editNav.GetEditUrl(ModuleId)); }
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()); } }