protected void btn_add_comment_Click(object sender, EventArgs e)
    {
        KB_CommentBLL bll = new KB_CommentBLL();
        bll.Model.Article = (int)ViewState["ID"];
        bll.Model.CommentStaff = (int)Session["UserID"];
        bll.Model.IsDelete = "N";
        bll.Model.Content = tbx_CommentContent.Text;

        int i = bll.Add();
        tbx_CommentContent.Text = "";
        BindData();
    }
Beispiel #2
0
    protected void btn_add_comment_Click(object sender, EventArgs e)
    {
        KB_CommentBLL bll = new KB_CommentBLL();

        bll.Model.Article      = (int)ViewState["ID"];
        bll.Model.CommentStaff = (int)Session["UserID"];
        bll.Model.IsDelete     = "N";
        bll.Model.Content      = tbx_CommentContent.Text;

        int i = bll.Add();

        tbx_CommentContent.Text = "";
        BindData();
    }