Wednesday, January 30, 2013

Removing DNN Page By Code



Following is the code for remove DNN page from DNN portal.        

TabController tabController = new TabController();
          TabInfo tab= tabController.GetTabByName("FirstPage", -1);
           //-1- is for hot page 0 for portal page
           tabController.DeleteTab(tab.TabID, -1);


No comments:

Post a Comment