예제 #1
0
        public void add()
        {
            JavaDLL bll = new JavaDLL();

            if (bll.addKnowledge(txtTitle.Text.Trim(), content, ((UserInfo)Session["LoginUser"]).UserName))
            {
                ClientScript.RegisterStartupScript(GetType(), "tip", "alert('新增成功!');window.location.href='Knowledge.aspx';", true);
            }
            else
            {
                ClientScript.RegisterStartupScript(GetType(), "tip", "alert('新增失败!');", true);
            }
        }