使用UpdatePanel,当UpdatePanel中用Response.Write();显示错误显示时,显示出一堆的信息。
解决方法将Response.Write();用 ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "msg1", "alert('要显示错误信息');", true);替换就可以。
不信你可以去试下。
使用UpdatePanel,当UpdatePanel中用Response.Write();显示错误显示时,显示出一堆的信息。
解决方法将Response.Write();用 ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "msg1", "alert('要显示错误信息');", true);替换就可以。
不信你可以去试下。