How to modify the server value of response header through code behind using asp.net 2.0 with IIS6.0 server.
I have tried Response.Headers.Set("XYZ","ABC"); But it displays integrated pipeline error....
How to modify the server value of response header through code behind using asp.net 2.0 with IIS6.0 server.
I have tried Response.Headers.Set("XYZ","ABC"); But it displays integrated pipeline error....
Try this:
HttpResponse response = ...;
response.ClearHeaders();
response.ClearContent();
response.ContentType = "application/octet-stream";
response.AppendHeader("Content-Disposition", ""); //(write whatever headers you want like this)