ASP - Antwortobjekt


Das ASP-Antwortobjekt wird verwendet, um eine Ausgabe vom Server an den Benutzer zu senden.


Mehr Beispiele


schreiben So schreiben Sie Text mit ASP.


So kombinieren Sie Text und HTML-Tags mit ASP.


umleiten So leiten Sie den Benutzer auf eine andere URL um.


anzeigen So erstellen Sie einen zufälligen Link.


So steuern Sie den Puffer.


löschen So löschen Sie den Puffer.


So beenden Sie ein Skript mitten in der Verarbeitung.


So legen Sie fest, wie viele Minuten eine Seite in einem Browser zwischengespeichert wird, bevor sie abläuft.


So geben Sie ein Datum/eine Uhrzeit an, zu der eine in einem Browser zwischengespeicherte Seite abläuft.


So überprüfen Sie, ob ein Benutzer vom Server getrennt ist.


So geben Sie den Inhaltstyp an.


So geben Sie den Namen des Zeichensatzes an.



Antwortobjekt

Das ASP-Antwortobjekt wird verwendet, um eine Ausgabe vom Server an den Benutzer zu senden. Seine Sammlungen, Eigenschaften und Methoden werden im Folgenden beschrieben:

Sammlungen

Collection Description
Cookies Sets a cookie value. If the cookie does not exist, it will be created, and take the value that is specified

Eigenschaften

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

Methoden

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