开发者

adding custom header with classic asp

开发者 https://www.devze.com 2022-12-22 18:25 出处:网络
I was wondering if its possible to add custom header with classic asp. In other words, I am looking for classic asp equivalent of .net\'s Resp开发者_Go百科onse.AddHeader().

I was wondering if its possible to add custom header with classic asp. In other words, I am looking for classic asp equivalent of .net's Resp开发者_Go百科onse.AddHeader().

i.e.

HttpContext.Response.AddHeader("customheadertruefalse","1");


Use Response.AddHeader (as JohnFx already answered). Here is sample from one of my working asp pages :

Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=ranking-export.csv"


Don't mean to be that guy, but have you tried Response.AddHeader?

0

精彩评论

暂无评论...
验证码 换一张
取 消