惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
N
Netflix TechBlog - Medium
G
Google Developers Blog
L
LangChain Blog
腾讯CDC
大猫的无限游戏
大猫的无限游戏
U
Unit 42
Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
The GitHub Blog
The GitHub Blog
博客园_首页
GbyAI
GbyAI

博客园 - 好窝

SQL Server 日期和时间函数 面试谈离职 技巧很重要 服务器应用程序不可用 Scripting.FileSystemObject 的文件复制,删除,移动操作 - 好窝 - 博客园 刷新框架网页七种方法 asp套打位置 三层结构 RecordSet中的open完全的语法 域名删除时间及whois状态说明 把书看薄,再看厚 ContentType类型 使用Request.Servervariables("HTTP_USER_AGENT")取值 HTTP_X_FORWARDED_FOR & REMOTE_ADDR HTTP 头已经写入到客户浏览器。任何HTTP 头的修改必须在写入页内容之前。 使用获取url中的文件名和传过来的值 Response.ContentType 怎么重启IIS 笔记本键盘设置 安装SQL2000时提示错误:以前的某个程序安装己在安装计算机上创建挂起的文件操作
Response.AddHeader使用实例收集
好窝 · 2008-02-10 · via 博客园 - 好窝

文件下载,指定默认名

1Response.AddHeader("content-type","application/x-msdownload");
2Response.AddHeader("Content-Disposition","attachment;filename=要下载的文件名.rar");

刷新页面

1Response.AddHeader “REFRESH”, ”60;URL=newpath/newpage.asp” 
2这等同于客户机端<META>元素: 
3<META HTTP-EQUIV=”REFRESH”, “60;URL=newpath/newpage.asp”

页面转向

1Response.Status = “302 Object Moved” 
2Response.Addheader “Location”, “newpath/newpage.asp” 
3这等同于使用Response.Redirect方法: 
4Response.Redirect “newpath/newpage.asp”

强制浏览器显示一个用户名/口令对话

1Response.Status= “401 Unauthorized” 
2Response.Addheader “WWW-Authenticate”, “BASIC” 
3强制浏览器显示一个用户名/口令对话框,然后使用BASIC验证把它们发送回服务器(将在本书后续部分看到验证方法)。

如何让网页不缓冲

1Response.Expires = 0 
2Response.ExpiresAbsolute = Now() - 1
 
3Response.Addheader "pragma","no-cache"
 
4Response.Addheader "cache-control","private"
 
5Response.CacheControl = "no-cache