ASP 응답 개체
ASP 응답 개체는 서버에서 사용자에게 출력을 보내는 데 사용됩니다.
더 많은 예
를 작성하는 방법.
와 텍스트 및 HTML 태그를 결합하는 방법.
로 리디렉션 사용자를 다른 URL로 리디렉션하는 방법입니다.
를 만드는 방법.
를 제어하는 방법.
를 지우는 방법입니다.
스크립트를 종료하는 방법.
페이지를 캐시할 시간(분)을 지정하는 방법.
되는 날짜/시간을 지정하는 방법.
있는지 확인 사용자가 서버에서 연결이 끊겼는지 확인하는 방법입니다.
유형을 지정하는 방법입니다.
의 이름을 지정하는 방법입니다.
응답 개체
ASP 응답 개체는 서버에서 사용자에게 출력을 보내는 데 사용됩니다. 컬렉션, 속성 및 메서드는 아래에 설명되어 있습니다.
컬렉션
Collection | Description |
---|---|
Cookies | Sets a cookie value. If the cookie does not exist, it will be created, and take the value that is specified |
속성
Property | Description |
---|---|
Buffer | Specifies whether to buffer the page output or not |
CacheControl | Sets whether a proxy server can cache the output generated by ASP or not |
Charset | Appends the name of a character-set to the content-type header in the Response object |
ContentType | Sets the HTTP content type for the Response object |
Expires | Sets how long (in minutes) a page will be cached on a browser before it expires |
ExpiresAbsolute | Sets a date and time when a page cached on a browser will expire |
IsClientConnected | Indicates if the client has disconnected from the server |
Pics | Appends a value to the PICS label response header |
Status | Specifies the value of the status line returned by the server |
행동 양식
Method | Description |
---|---|
AddHeader | Adds a new HTTP header and a value to the HTTP response |
AppendToLog | Adds a string to the end of the server log entry |
BinaryWrite | Writes data directly to the output without any character conversion |
Clear | Clears any buffered HTML output |
End | Stops processing a script, and returns the current result |
Flush | Sends buffered HTML output immediately |
Redirect | Redirects the user to a different URL |
Write | Writes a specified string to the output |