protected void btn_Normal_Delete_Click(object sender, EventArgs e) { if (!DataEval.IsEmptyQuery(_pageindexid)) { PageMgr myPageMgr = new PageMgr(); Page_PropertyMgr myPage_PropertyMgr = new Page_PropertyMgr(); PageIndex myPageIndex = myPageMgr.Get_PageIndex(_pageindexid); switch (myPageIndex.Page_Type) { case Page_Type.Normal_Page: myPageMgr.Delete_PageIndex(_pageindexid); break; case Page_Type.Category: myPageMgr.Delete_PageIndex(_pageindexid); break; case Page_Type.Internal_Page_Pointer: myPage_PropertyMgr.Remove_Page_IntLink(_pageindexid); myPageMgr.Remove_PageIndex(_pageindexid); break; case Page_Type.External_Link: myPage_PropertyMgr.Remove_Page_ExtLink(_pageindexid); myPageMgr.Remove_PageIndex(_pageindexid); break; } OnDeletePageClick(sender, e); } }