Response

Response.Clear();  //清空缓存区内容

Response.End();  

//将当前所有缓冲的输出发送到客户端,停止该页的执行,ASPX的页面的内容就不会输出了.就只会输出Response.write的内容了.可用于弹出提示时不想显示页面的信息时用.

ClientScript.RegisterStartupScript(this.GetType(), "message", "<script language='javascript'>alert('123');</script>");

这个语句也不是执行的.只执行Response.write

原文地址:https://www.cnblogs.com/chencidi/p/2182732.html