This site has been taken over by the staff of www.ASPDeveloper.Net

Please report errors to suggest@aspdeveloper.net

BizTalk Utilities CV ,   Jobs ,   Code library  
 
Home Page
Microsoft ASP
The Request.TotalBytes Property
The Request.ServerVariables Property
The Request.QueryString Property
The Request.Form Property
The Request.Cookies Property
The Request.ClientCertification Property
The Request.BinaryRead Method
The Request Object
The ObjectContext.SetComplete Method
The ObjectContext.SetAbort Method
The ObjectContext.OnTransactionCommit Event
The ObjectContext.OnTransactionAbort Event
The ObjectContext Object
The Application.StaticObjects Collection
The Application.Contents Collection
The Application.UnLock Method
The Application.Lock Method
The Application.Contents.RemoveAll() Method
The Application.Contents.Remove(name|index) Method
The Application.OnStart() Event
<< LAMP
 

By :Mark Wilson
I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
First posted :03/24/2008
Times viewed :2837

 

The Response Object

Introduction

The Response object can be used to send data to the user from the Server. For example if you want to send a message to the server you can use the Response.Write method. To clear the buffer you can just use the Clear method. All methods and properties are listed in the below tables.

Example

The following example simply saves the string into a variable and prints it out to the user.

<%

            dim mystring

            mystring = "Hello World"

            Response.Write mystring

%>

Output

Methods

Name:

Description:

AddHeader

This method adds a new html header.

AppendToLog

This method adds a string to the web server log file.

BinaryWrite

This method writes data to the current HTTP. It is useful to write binary data.

Clear

This method clears any buffered HTML output.

End

This method stops the current processing of the asp page and only returns the result before this method.

Flush

This method sends buffered output immediately.

Redirect

This method can be used to redirect the user to another URL.

Write

This method can be used to write out a variable or text.

Properties

Name:

Description:

Buffer

This property can be use to indicate whether the page is buffered.

CacheControl

This property can be used to set whether a proxy server can cache the output generated by asp or not.

CharSet

This property can be used to append the name of the character set to the content-type header.

CodePage

This property can be used to set the codepage for data in the intrinsic objects for one response.

ContentType

This property can be used to specify the contenttype for the response.

Cookies

This value can be used to set the cookie value.

Expires

This value specifies the length of the time before a cached page expires.

ExpireAbsolute

This value can be used to specify the absolute date and time when the cached page expires.

IsClientConnected

This value can be used whether the client is connected to the server or not.

LCID (LocaleID)

This value can be used to specify how date, time and currency are formatted for a specific geographical locale.

PICS

This value can be used to set the value for pics-label.

Status

This value can be used to specify the status line returned by the server.


Rate this article on a scale of 1 to 10

Your vote :  


 

Recent Jobs

Software Specialist, Linux - Finlan
Linux Core Technical Project Manage
Graphics designer at Tanzania. Expe
Integration Specialist Needed - Wor
Virtualization Server Infrastructur

View all Jobs (Add yours)
View all CV (Add yours)






    Email TopXML  

Front Page Daily Stuff TopXML Forum XML blogs XML Newsgroups BizTalk Biztalk Utilities Biztalk Utilities Tutorial B2B SAP XML Microsoft .NET Dotnet System XML Soapformatter SQLXML XMLserializer XQuery PHP PHP SimpleXML PHP XML Dom PHP XML RPC PHP XSLT Java Java Java XML Xalan Microsoft ASP ASP Schemas XML SQL Server XML XMLDom XSL XSL Tutorial XSLT Stylesheets General Javascript CSS XHTML WAP