private void MyBind() { if (Mid < 0) { Response.Redirect("/PItem?ID=" + (-Mid)); return; } M_Blog_Msg msgMod = msgBll.SelReturnModel(Mid); M_User_Plat user = B_User_Plat.GetLogin(); //if (user.CompID != msgModel.CompID){function.WriteErrMsg("此文章您没有权限访问!");} CDate_L.Text = msgMod.CDate.ToString("yyyy年MM月dd日 hh:mm"); Read_L.Text = "<span title='阅读量'> <i class='fa fa-eye'></i>" + msgMod.ReadNumber + "</span>"; Content_Lit.Text = msgMod.MsgContent; ids_Hid.Value = msgMod.LikeIDS; Attach_Lit.Text = GetAttach(msgMod.Attach); if (msgMod.MsgType == 2) { LoadVote(); } //--------------------------------- DataTable dt = null; int pageCount = 0; dt = likeBll.SelLikeUsers(Mid, "plat"); //Like_RPT.DataSource = dt; //Like_RPT.DataBind(); Empty_Span_Like.Visible = dt.Rows.Count <= 0; dt = msgBll.SelByPid(5, CPage, out pageCount, Mid); MsgRepeater.DataSource = dt; MsgRepeater.DataBind(); Empty_Span_Comm.Visible = dt.Rows.Count <= 0; commCount_L.Text = msgBll.GetSumCount(Mid).ToString(); UserInfo_Hid.Value = user.TrueName + ":" + user.UserFace; likeCount_L.Text = msgMod.LikeIDS.Split(",".ToCharArray(), StringSplitOptions.RemoveEmptyEntries).Length.ToString(); MsgPage_L.Text = PageCommon.CreatePageHtml(pageCount, CPage); }