将response.write(<script>alert('');</script>);换成
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "TestAlert", "alert('测试 alert !');", true);
就OK
将response.write(<script>alert('');</script>);换成
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "TestAlert", "alert('测试 alert !');", true);
就OK
转载于:https://www.cnblogs.com/Xingsoft-555/archive/2009/12/05/1617587.html