public static int ModifyInfo(string sources)
        {
            string[] src       = sources.Split(';');
            string   MBId      = src[0];
            var      title     = src[1];
            var      content   = src[2];
            var      linkURL   = src[3];
            int      categroie = int.Parse(src[4]);

            return(UserMessageBoardService.ModifyBaseInfo(MBId, title, content, linkURL, categroie));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     tc = new WebPageControls.TableControls(contentDT, SIZE_PAGE, AJAX_URL);
     GetViewBind(tc.GotoPage(1));
     if (!IsPostBack)
     {
         categroies.DataSource     = UserMessageBoardService.GetCategories();
         categroies.DataTextField  = "CategoriesTitle";
         categroies.DataValueField = "CategoriesId";
         categroies.DataBind();
     }
     GetPageIndex();
     pagingAllPage.InnerHtml = "一共有" + tc.TotalPage.ToString() + "页";
 }
 public static int DelElement(string id)
 {
     return(UserMessageBoardService.DeleteMessageBoardByID(id));
 }
 /// <summary>
 /// 获取评论  分类
 /// </summary>
 /// <returns></returns>
 public static DataTable GetCategories()
 {
     return(UserMessageBoardService.GetCategories());
 }
 private static bool MeassageBoradInData(int userId, string title, string comment, int categoriesId)
 {
     return(UserMessageBoardService.AddUserMessageBoard(userId, title, comment, UserMessageBoardManager.GET_DEFULT_URL, DateTime.Now, categoriesId));
 }