经过研究发现Response.Write() 如果想输出一个JS脚本的话,会破坏HTML的结构
那么以下这种方法就不会了.
ClientScriptManager cs = this.ClientScript;
cs.RegisterStartupScript(this.GetType(), "a", "<script>alert('哈哈我来了!')</script>");
cs.RegisterOnSubmitStatement(this.GetType(), "HelloWorld", "return window.confirm('您确定删除吗?')");