コード例 #1
0
ファイル: Gallery.aspx.cs プロジェクト: chandru9279/StarBase
 protected void CategoriesAddButton_Click(object sender, System.EventArgs e)
 {
     //Add new category
     if (CategoriesAddDeleteBox.Text.Length > 0)
     {
         Category cat = new Category();
         cat.CategoryName = CategoriesAddDeleteBox.Text.Replace("'", string.Empty);
         cat.CategoryOwner = _Owner;
         GDC.Categories.InsertOnSubmit(cat);
         GDC.SubmitChanges();
         //string SQLString = "INSERT INTO Categories ( CategoryName, CategoryOwner ) SELECT '" + CategoriesAddDeleteBox.Text.Replace("'", "''") + "','" + _Owner + "'";
         CategoriesAddDeleteBox.Text = "";
         Cache.Remove("GalleryControl" + _Owner + "Categories");
         RenderCategories();
     }
 }
コード例 #2
0
 partial void UpdateCategory(Category instance);
コード例 #3
0
 partial void DeleteCategory(Category instance);
コード例 #4
0
 partial void InsertCategory(Category instance);