Response

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

 

Response.End();  

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

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

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

posted @ 2011-09-20 18:03  陈同学  阅读(318)  评论(0编辑  收藏  举报