将response.write(<script>alert('');</script>);换成
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "TestAlert", "alert('测试 alert !');", true);就OK