예제 #1
0
 protected void BtnAddComnt_Click(object sender, EventArgs e)
 {
     if (CheckBoxPrivate.Checked)
     {
         input1.AddComment(Convert.ToInt16(Session["User_ID"]), Convert.ToInt16(Session["id"]), Commenttxt.Text, true);
     }
     else
     {
         input1.AddComment(Convert.ToInt16(Session["User_ID"]), Convert.ToInt16(Session["id"]), Commenttxt.Text, false);
     }
     Commenttxt.Text = "";
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "none", "<script>    $(document).ready(function () { $('#myModal').modal('show'); });   </script>", false);
     SqlDataSource1.SelectParameters["Change_ID"].DefaultValue         = Session["id"].ToString();
     SqlDataSource_Comments.SelectParameters["Change_ID"].DefaultValue = Session["id"].ToString();
     DataList1.DataBind();
 }