是'response.clear()“中删除的内容和标题? [英] does 'response.clear()' remove content and header?

查看:519
本文介绍了是'response.clear()“中删除的内容和标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道,如果 Response.Clear()刚刚明确的内容或者它也删除了头?
换句话说,如果我使用 Response.Clear(),我是否还需要使用 Response.ClearHeader()或不呢?

I need to know if Response.Clear() just clear content or it also remove the headers? in other word if I use Response.Clear(), do I also need to use Response.ClearHeader() or not ?

推荐答案

AS的 MSDN

Clear方法清除任何缓冲的HTML输出。然而,清除
  方法只删除响应正文;它不会删除响应
  头。

The Clear method erases any buffered HTML output. However, the Clear method erases only the response body; it does not erase response headers.

要清除头使用 Response.ClearHeaders();

这篇关于是'response.clear()“中删除的内容和标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆