web tools rank checker

domain .cn
.net .cn .com.cn
你正在阅览 :: 简体中文:: 学习 ASP SQL VB HTML code

学习 .ASP SQL HTML XML CSS JAVA Perl code study
English Chinese_Traditional Chinese_Simplified

你正在阅览 :: 简体中文 Chinese_Simplified

学习.主题:
首页
ASP
. Active-Server-Flash
. Array
. Connection
. Count
. Counter
. Distinct
. Email
. File
. Folder
. Function
. GetSQLserver
. Header
. mySQL
. Record
. Recordset
. Request
. Response
»AddHeader
»charset
»ContentType
»expires
»Redirect
. Server
. Server-CreateObject
. ServerVariables
. Session
. Special-Symbols
. String
. Sub
. Time
CSS
Ecommerce
HTML
InternetProtocol
JAVA
Microsoft
Robots
SearchEngine
SQL
SQLserver
VBscript
XML

SiteMap

3w....学习.教学 > ASP > response » addheader

3w learning

response >
addheader

Title:

Response.AddHeader


Description:

Syntax: Response.AddHeader name, value Response.AddHeader “REFRESH”, ”60;URL=__________” Response.Status = “302 Object Moved” Response.Addheader “Location”, “http://_________" Response.Status= “401 Unauthorized” Response.Addheader “WWW-Authenticate”, “BASIC”


Example Code:

----------- refresh for HTML example code ----------- <meta http-equiv="refresh" content="60; url=http://www.ezer.com"> ----------- refresh for ASP example code ----------- ASP example 1 <% Response.AddHeader "Refresh", "5" %> ASP example 2 <% Response.AddHeader "Refresh", "60;URL=http://www.ezer.com" %> ------------------------ if use redirect:: Response.Redirect "http://link.ezer.com" ------------------------ Response.AddHeader “REFRESH”, ”60; URL=____" same as client <META> tags: example <META HTTP-EQUIV=”REFRESH”, “60;URL=____” > ------------------------- <% Response.Status = “302 Object Moved” Response.Addheader “Location”, “http://____” %> same as ASP Response.Redirect method: <% Response.Redirect “http://____" %> ------------------------------------- to send status info <% Response.Status= “401 Unauthorized” Response.Addheader “WWW-Authenticate”, “BASIC” %> ---------------------------------- <% Response.Status="301 Moved Permanently" Response.AddHeader "Location", "http://____" Response.End %>


--------注意----------
refresh "new URL"
视为浏览过两页的状况
一为原页, 二为new URL

Redirect 是直接转向
所以视同浏览到了该页。
Example Result:


HTML example :: website redirect to http://www.ezer.com after 60 seconds ASP example 1 :: same website refresh every 5 seconds ASP example 2 :: website redirect to http://www.ezer.com after 60 seconds


..
...
...

[ 7/27/2008 ]

www learning school add more scripts and tips memo
You are at >>3WS.EZER.COM >> 3WS.EZER.COM/ASP/RESPONSE/ADDHEADER.ASP>>ASP
Helpful link:: SEO web tools :: Live PR | SERP checker
back to top Ezer code adding :: Questions ;email