コード例 #1
0
        protected void Delete_AdviceReply_LinkButton_Click(object sender, CommandEventArgs e)
        {
            if (Session["UserInfo"] != null)
            {
                MessageInfo replyadvice = new MessageInfo();
                replyadvice.MessageID = int.Parse(e.CommandArgument.ToString());
                replyadvice.DeleteAdviceReply();

                AllDataBind();
                //Response.Redirect(Request.Url.AbsoluteUri);
            }
        }
コード例 #2
0
        protected void Delete_AdviceReply_LinkButton_Click(object sender, CommandEventArgs e)
        {
            if (Session["UserInfo"] != null)
            {
                MessageInfo replyadvice = new MessageInfo();
                replyadvice.MessageID = int.Parse(e.CommandArgument.ToString());
                replyadvice.DeleteAdviceReply();

                mynewadvice                        = user.GetNewAdvice();
                AspNetPager.RecordCount            = mynewadvice.Tables["NewAdvice"].Rows.Count;
                AllMyNewAdvice_DataList.DataSource = FilterTable(mynewadvice.Tables["NewAdvice"], AspNetPager.StartRecordIndex - 1, AspNetPager.EndRecordIndex - 1);
                AllMyNewAdvice_DataList.DataBind();
                //Response.Redirect(Request.Url.AbsoluteUri);
            }
        }