我想知道是否可以添加经典asp的自定义标题.换句话说,我正在寻找经典的asp等效的.net的response.addheader().
即
HttpContext.response.addheader( “customheadertruefalse”,“1”);
解决方法
使用response.addheader(正如JohnFx已经回答的那样).
以下是我工作的asp页面中的示例:
以下是我工作的asp页面中的示例:
Response.ContentType = "application/vnd.ms-excel" response.addheader "Content-disposition","attachment; filename=ranking-export.csv"