Built-in object Object's name Response Request Server Application Session Description Used to transmit data to the client browser To read the client browser data Used to provide some Web server properties and methods Used to store the current application all users share data Used to store the current application degree single user dedicated data HTTP is an information Request and Response communication protocol Response attributes are: Methods or Attributes Write method Redirect method End method Buffer properties Clear method Flush method explain Output data to the browser Change web page End data output Whether setting buffer Remove buffer data Output buffer data <% Response.Buffer = True %> <% weekstr = Array( "日", "一", "二", "三", "四", "五", "六") 日 一 二 三 四 五 六 Nweek = DatePart("w", Date() ) - 1 ' What day is today Cweek = weekstr(Nweek) %> This is my first homepage!
<% Response.write now x=hour(now) Response.write "
Winword/a ( The cursor becomes ) Redirect methods Causes the browser to immediately redirected to a program specified URL <% Response.redirect "baidu" %> <% week = DatePart("w", Date() ) - 1 ' what day is today? WhichPage = "0" &; week &; ".htm" Response.Redirect "fruit/"&;WhichPage %> End methods Make Web server returns the current script and stop processing results. if request("Name")=empty then Response.write "
I am sorry! You have no input Name parameters!!!
" 'Response.end end if if request("Facourite")=empty then Response.write "I am sorry! You have no input Favourite parameters!!!
" ' Response.end end if <% If Date > #2008/12/31# Then Response.Write "I am sorry,This web page has failure!" Response.End End If If Time < #09:00:00# Or Time > #17:00:00# Then Response.Write "I am sorry, This web page open time is 9 a.m. to 5 p.m.!" Response.End End If %> <% If Date < #2008/12/31# Then Response.Write "I am sorry,This web page has failure!" Response.End End If If Time < #09:00:00# Or Time > #17:00:00# Then Response.Write "I am sorry, This web page open time is 9 a.m. to 5 p.m.!" Response.End End If %> <% Response.Buffer = True %> <% Response.write "Compulsory send buffer data" Response.flush Response.write "Next to cancel buffer data" Response.clear %> Request object and Input form Form component object: input field, the submit button, handling procedures The form of several important attribute:aciton、method、type、name 、 、 、 : Text box