ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, typeof(UpdatePanel), "test", "alert('test');", true);
用上面的代码可以弹出提示框
但下面的代码为什么没有输出文字"test"
ScriptManager.RegisterClientScriptBlock(this.UpdatePanel1, typeof(UpdatePanel), "test", "document.write('test');", true);