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 ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
AS MSDN SAYS
The Clear method erases any buffered HTML output. However, the Clear method erases only the response body; it does not erase response headers.
To clear header use Response.ClearHeaders();