コード例 #1
0
ファイル: MyNewComment.aspx.cs プロジェクト: wzg21/USTC_kkpk
        protected void ReadNewComment_Button_Click(object sender, CommandEventArgs e)
        {
            if (Session["UserInfo"] != null)
            {
                MessageInfo comment = new MessageInfo();
                comment.UserID    = user.UserID;
                comment.MessageID = int.Parse(e.CommandArgument.ToString());
                comment.Type      = 1;
                comment.Read();

                mynewcomment                        = user.GetNewComment();
                AspNetPager.RecordCount             = mynewcomment.Tables["NewComment"].Rows.Count;
                AllMyNewComment_DataList.DataSource = FilterTable(mynewcomment.Tables["NewComment"], AspNetPager.StartRecordIndex - 1, AspNetPager.EndRecordIndex - 1);
                AllMyNewComment_DataList.DataBind();
                //Response.Redirect(Request.Url.AbsoluteUri);
            }
        }