Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

does 'response.clear()' remove content and header?

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 ?

like image 354
Raed Alsaleh Avatar asked Mar 21 '13 10:03

Raed Alsaleh


Video Answer


1 Answers

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();

like image 138
Pranav Avatar answered Oct 30 '22 20:10

Pranav