protected void uiGridViewCMS_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "EditCMS")
     {
         RelatedContent objData = new RelatedContent();
         objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString()));
         CMS_Content cms = new CMS_Content();
         cms.LoadByPrimaryKey(objData.CMSID);
         uiTextBoxCMSTitle.Text = cms.ArTitle;
         uiRadEditorCMSContent.Content = Server.HtmlDecode(cms.ArContent);
         uiPanelAllCMS.Visible = false;
         uiPanelEditCMS.Visible = true;
         CurrentRelatedArticle = objData;
     }
     else if (e.CommandName == "DeleteCMS")
     {
         RelatedContent objData = new RelatedContent();
         objData.LoadByPrimaryKey(Convert.ToInt32(e.CommandArgument.ToString()));
         CMS_Content cms = new CMS_Content();
         cms.LoadByPrimaryKey(objData.CMSID);
         objData.MarkAsDeleted();
         objData.Save();
         cms.MarkAsDeleted();
         cms.Save();
         LoadArticles();
     }
 }