示例#1
0
        private void Remove_Attribute(string PageIndexID)
        {
            Page_PropertyMgr myPropertyMgr = new Page_PropertyMgr();

            if (myPropertyMgr.Chk_Page_Attribute(PageIndexID))
            {
                myPropertyMgr.Remove_Page_Attribute(PageIndexID);
            }
        }
示例#2
0
        private void Edit_Attribute(string PageIndexID)
        {
            Page_PropertyMgr myPropertyMgr = new Page_PropertyMgr();

            // Page Index
            e2Data[] UpdateData =
            {
                new e2Data("PageIndexID",      PageIndexID),
                new e2Data("Page_Title",       tbx_Page_Title.Text),
                new e2Data("Page_Keyword",     tbx_Page_Keyword.Text),
                new e2Data("Page_Description", tbx_Page_Description.Text)
            };

            if (myPropertyMgr.Chk_Page_Attribute(PageIndexID))
            {
                myPropertyMgr.Edit_Page_Attribute(UpdateData);
            }
            else
            {
                myPropertyMgr.Add_Page_Attribute(UpdateData);
            }
        }