protected void Button1_Click(object sender, EventArgs e) { if (!checkAuthority()) { Jscript.AjaxAlert(this, "受理用户 和 提问者 方可留言"); return; } int id = int.Parse(IDS.Text.ToString()); string str = "<font color=\"#009900\">" + DateTime.Now.ToString("yyyy-MM-dd") + " " + getUserName() + " </font> :" + TextReplyInfo.Text.ToString() + " <br/>"; Leyp.SQLServerDAL.Factory.getServiceInfoDAL().addReplyInfo(id, str); Jscript.JavaScriptLocationHref(Request.RawUrl); }