コード例 #1
0
ファイル: CategoryMenu.ascx.cs プロジェクト: valadas/DNNStore
        private void EditCategory(string categoryID)
        {
            CatalogNavigation editNav = new CatalogNavigation
            {
                Edit       = "Category",
                CategoryID = int.Parse(categoryID)
            };

            Response.Redirect(editNav.GetEditUrl(ModuleId));
        }
コード例 #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());
            }
        }