private void MyBind()
        {
            DataTable dt = msgBll.Sel(0);

            dt.DefaultView.RowFilter = "Status=" + PlatStauts;
            Rels.Visible             = (PlatStauts == 0);
            Clear_Btn.Visible        = (PlatStauts == 0);
            EGV.DataSource           = dt.DefaultView.ToTable();
            EGV.DataBind();
        }
Exemplo n.º 2
0
        void MyBind()
        {
            ID_L.Text = ID.ToString();
            M_Blog_Msg msgMod = msgBll.SelReturnModel(ID);

            CUser_L.Text      = "<a href='../User/UserInfo.aspx?ID=" + msgMod.CUser + "'>" + msgMod.CUName + "</a>";
            MsgContent_L.Text = msgMod.MsgContent;
            MsgContent_T.Text = msgMod.MsgContent;
            CDate_L.Text      = msgMod.CDate.ToString();
            CDate_T.Text      = msgMod.CDate.ToString();
            EGV.DataSource    = msgBll.Sel(ID);
            EGV.DataBind();
        }