asp.net js 问题
请大家帮忙。但是发布成功了,还是报这个错误。
UserContorl.zip.rar
(2.11 KB)
程序代码:
//发布法律法规 protected void ImageButton1_Click(object sender, ImageClickEventArgs e) { Law model = new Law(); model.Title = this.TextBox1.Text; model.Date = Convert.ToDateTime(this.TextBox2.Text.ToString()); model.Valid = Convert.ToDateTime(this.TextBox3.Text.ToString()); model.Contents = this.FreeTextBox1.Text; model.Userid = ((Users)Session["currentUser"]).Id; if (noticeMessage.addLaw(model)) { this.userControl.showMessage("恭喜你!发布成功..."); } else { this.userControl.showMessage("对不起!服务器繁忙请稍候操作..."); } }