protected void Page_Load(object sender, EventArgs e)
        {
            string str = "分类名称";

            if (!this.Page.IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["CateID"]))
                {
                    guestMod = guestBll.GetQuest(Convert.ToInt32(Request.QueryString["CateID"]));
                    if (guestMod != null)
                    {
                        str = guestMod.Title;
                    }
                }
                int GID = string.IsNullOrEmpty(Request.QueryString["GID"]) ? 0 : DataConverter.CLng(Request.QueryString["GID"]);
                if (GID <= 0)
                {
                    function.WriteErrMsg("留言ID不正确!", "../Plus/Default.aspx");
                }
                else
                {
                    this.HdnGID.Value = GID.ToString();
                    dBind();
                    //EgvBind();
                }
                M_GuestBook model = guestBll.GetQuest(Mid);
                if (model.GID > 0)
                {
                    TextBox1.Text    = model.Title;
                    tx_Content.Value = model.TContent;
                }
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ContentManage.aspx'>内容管理</a></li><li><a href='WdCheck.aspx'>百科问答</a></li><li><a href='GuestManage.aspx'>留言管理</a></li><li><a href='Default.aspx?CateID=" + Request.QueryString["CateID"] + "'>" + str + "</a></li><li class='active'>回复留言</li>");
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            int Cateid = DataConverter.CLng(Request.QueryString["CateID"]);

            if (Status != -1)
            {
                RelStr = " [<a href='Default.aspx?CateID=" + Cateid + "&status=-1'>回收站</a>]";
            }
            else
            {
                Del_B.Visible        = true;
                Rel_B.Visible        = true;
                btnAdudit.Visible    = false;
                btnSvaeAudit.Visible = false;
                btndelete.Visible    = false;
                RelStr = " [<a href='Default.aspx?CateID=" + Cateid + "'>留言列表</a>]";
            }
            if (!IsPostBack)
            {
                int CateID = string.IsNullOrEmpty(Request.QueryString["CateID"]) ? 0 : DataConverter.CLng(Request.QueryString["CateID"]);
                if (CateID <= 0)
                {
                    function.WriteErrMsg("缺少留言分类ID", "../Guest/GuestCateMana.aspx");
                }
                else
                {
                    this.HdnCateID.Value = CateID.ToString();
                }
                cateName = ">>" + guestBll.GetQuest(CateID).Title;
                MyBind();
            }
        }
        public ActionResult GuestShow()
        {
            int GID = DataConverter.CLng(Request["GID"]);

            if (GID < 1)
            {
                function.WriteErrMsg("没有传入留言ID"); return(null);
            }
            M_GuestBook info = guestBll.GetQuest(GID);

            if (info.IsNull || info.ParentID > 0 || info.Status == -1)
            {
                function.WriteErrMsg("留言信息不存在!"); return(null);
            }
            if (info.Status == 0 && info.UserID != buser.GetLogin().UserID)
            {
                function.WriteErrMsg("该留言未通过审核,无法查看详情"); return(null);
            }
            M_GuestBookCate cateMod = cateBll.SelReturnModel(info.CateID);
            M_UserInfo      mu      = buser.GetLogin();

            ViewBag.mu      = mu;
            ViewBag.cateMod = cateMod;
            ViewBag.GTitle  = info.Title;
            ViewBag.cateDt  = cateBll.SelByGuest();
            PageSetting setting = B_GuestBook.GetTipsList_SPage(CPage, 20, GID);

            return(View(setting));
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            string str = "分类名称";

            function.AccessRulo();
            Egv.txtFunc = txtPageFunc;
            int GID = DataConverter.CLng(Request.QueryString["GID"]);

            if (!this.Page.IsPostBack)
            {
                if (!string.IsNullOrEmpty(Request.QueryString["CateID"]))
                {
                    guestMod = guestBll.GetQuest(Convert.ToInt32(Request.QueryString["CateID"]));
                    if (guestMod != null)
                    {
                        str = guestMod.Title;
                    }
                }
                if (GID <= 0)
                {
                    function.WriteErrMsg("留言ID不正确!", "../Plus/Default.aspx");
                }
                else
                {
                    this.HdnGID.Value = GID.ToString();
                    dBind();
                    DataBind();
                }
            }
            string preview = "";

            if (guestMod.ParentID == 0)
            {
                preview = "<div class='pull-right hidden-xs' style='padding-right:10px;'><a href='/Guest/GuestShow?GID=" + GID + "' target='_blank' title='前台浏览'><span class='fa fa-eye'></span></a></div>";
            }
            Call.SetBreadCrumb(Master, "<li><a href='" + CustomerPageAction.customPath2 + "I/Main.aspx'>工作台</a></li><li><a href='ContentManage.aspx'>内容管理</a></li><li><a href='WdCheck.aspx'>百科问答</a></li><li><a href='GuestManage.aspx'>留言管理</a></li><li><a href='Default.aspx?CateID=" + Request.QueryString["CateID"] + "'>" + str + "</a></li><li class='active'>留言内容</li>" + preview);
        }