Every programming language or development tools have certain functions to communicate with the users, Asp same. In Asp responsible for relaying information to the user object Response object. Response targets for the dynamic response of the client request (Request) and dynamically generated in response to the results back to the client browser. Response object can use this information directly to the browser. redirect the browser to another URL, or set up the cookie value, and so on. Response asp programming object in a very broad, and it is a very handy tool. Below we see Response to specific targets :
Grammar : Response.collection|property|method
A collective “97 Response object –Cookies only one set, Cookies allow data sets of data provided in the client’s browser. If the designated cookie does not exist, then create it. If there is, then automatically update the data.
Here is the designated cookie cookie name. If the designated key, then the cookie is a dictionary. Designated cookie attribute their own relevant information. Attribute parameter can be one of the following :
Domain just write. If designated, the cookie will be sent to this area to the request.
Expires just write. Designated cookie expiration dates. To the end of the session cookie will be stored in the client disk, we must set the date. If this attribute configuration does not exceed the current date, the end of the mandate would expire after the cookie.
HasKeys CD. Whether designated cookie contains the keyword.
Path just write. If designated, the cookie will be sent only on the path to the request. If not setting up of the property, using the application’s path.
Secure written. Cookie designated safety.
Second, methods “97″ 97 Response.AddHeaderName. Value
Response to add a new HTML title. Name of the HTML title of the new name. Value for the first variable values. You can add any name and any value of the HTML title. It does not replace the existing title of the same title. Once the title is added, will not be deleted.
Response.AppendToLogString
To the Web server log entry added at the end of a string. String To add to the log files of string.
Response.BinaryWriteData
The method can not change any character will develop information wrote HTTP output mainly for write-string information (such as client-side applications for the process of binary data, etc.). Data is sent to the data.
Response.Clear
Buffer deleted all HTML output, but only in response to the text deleted without deleting response to the title. The method can be used to deal with errors of. We need to be aware that if Response.Buffer set to True. it will lead to the operating method is wrong.
Response.End
Web services is forced to stop execution of the script, and this current results document the remaining contents will not be processed. If Response.Buffer set to True. Response.end were called to the output buffer.
Response.Flush
Buffer for a response, sent all the buffer information. If Response.Buffer set to True, this method will lead to the wrong operation.
Response.RedirectURL
To the client browser redirected to a new Internet address. Url for the new Internet website addresses.
Response.WriteVariant
Response.Write Response object is the most commonly used method, This method can be sent to the browser string. Variant is a string or string with a value of the variable.
3, attribute “97″ 97 Response.Buffer
ActiveServerPage a buffer. Respond only to the end of a page or Response.Flush Response.End or transfer method used when sending out. Output Server will give the client can no longer set up after the Buffer attributes.
Response.CacheControl
Specify whether the Proxy server will cache ActiveServerPage. Default, the value FALSE. When the setting attributes for the Public, Proxy Server Buffer can be generated by the output of Asp.
Response.CharSet (Charsetname)
Name of Character Set (GB) Additional Response object to the content standard that behind to set up the web server to the client in response to the document character encoding. One possible value “ISO_LATIN_1.”
Response.ContentType
In response to the contents of the specified type. Possible values are plain and image/GIF, default values text/HTML.
Response.Expires
The browser can cache the current page length, in minutes as a unit.
Response.ExpiresAbsolute
Browser can no longer cache pages of the current date and time. Not due until their return. If not specified, the Home expire at midnight on that day; If not specified date, the time of day specified maturity.
True/False=Response.IsClientConnected
Read-only attribute to specify since the last call Response.Write, client and server are still connected. The properties allow users in the client and server not connected to the case have more control. For example, from the client requests the server has played accordingly, which should last for a long time under the circumstances. This may help to ensure the continued script before the client is connected. With the value TRUE or FALSE.
Response.PICS (PICS string)
Add website for the PICS rating. PICS-level specification of a page-level content, such as violence or pornography and so on.
Response.Status= “state described the string”
Used to set up the Web server to respond to the state of the value.
Response object
In: ASP-NET| CSS| Comment-Report| Database| Experience-skills| HTML-Xhtml| Information-security| Making-Experience| Others| Planning-profits| Venture-Guide
23 May 2007Every programming language or development tools have certain functions to communicate with the users, Asp same. In Asp responsible for relaying information to the user object Response object. Response targets for the dynamic response of the client request (Request) and dynamically generated in response to the results back to the client browser. Response object can use this information directly to the browser. redirect the browser to another URL, or set up the cookie value, and so on. Response asp programming object in a very broad, and it is a very handy tool. Below we see Response to specific targets :
Grammar :
Response.collection|property|method
A collective “97 Response object –Cookies only one set, Cookies allow data sets of data provided in the client’s browser. If the designated cookie does not exist, then create it. If there is, then automatically update the data.
Grammar : Response.Cookies (Cookie) [Key.Attribute]
Here is the designated cookie cookie name. If the designated key, then the cookie is a dictionary. Designated cookie attribute their own relevant information. Attribute parameter can be one of the following :
Domain just write. If designated, the cookie will be sent to this area to the request.
Expires just write. Designated cookie expiration dates. To the end of the session cookie will be stored in the client disk, we must set the date. If this attribute configuration does not exceed the current date, the end of the mandate would expire after the cookie.
HasKeys CD. Whether designated cookie contains the keyword.
Path just write. If designated, the cookie will be sent only on the path to the request. If not setting up of the property, using the application’s path.
Secure written. Cookie designated safety.
Second, methods “97″ 97 Response.AddHeaderName. Value
Response to add a new HTML title. Name of the HTML title of the new name. Value for the first variable values. You can add any name and any value of the HTML title. It does not replace the existing title of the same title. Once the title is added, will not be deleted.
Response.AppendToLogString
To the Web server log entry added at the end of a string. String To add to the log files of string.
Response.BinaryWriteData
The method can not change any character will develop information wrote HTTP output mainly for write-string information (such as client-side applications for the process of binary data, etc.). Data is sent to the data.
Response.Clear
Buffer deleted all HTML output, but only in response to the text deleted without deleting response to the title. The method can be used to deal with errors of. We need to be aware that if Response.Buffer set to True. it will lead to the operating method is wrong.
Response.End
Web services is forced to stop execution of the script, and this current results document the remaining contents will not be processed. If Response.Buffer set to True. Response.end were called to the output buffer.
Response.Flush
Buffer for a response, sent all the buffer information. If Response.Buffer set to True, this method will lead to the wrong operation.
Response.RedirectURL
To the client browser redirected to a new Internet address. Url for the new Internet website addresses.
Response.WriteVariant
Response.Write Response object is the most commonly used method, This method can be sent to the browser string. Variant is a string or string with a value of the variable.
3, attribute “97″ 97 Response.Buffer
ActiveServerPage a buffer. Respond only to the end of a page or Response.Flush Response.End or transfer method used when sending out. Output Server will give the client can no longer set up after the Buffer attributes.
Response.CacheControl
Specify whether the Proxy server will cache ActiveServerPage. Default, the value FALSE. When the setting attributes for the Public, Proxy Server Buffer can be generated by the output of Asp.
Response.CharSet (Charsetname)
Name of Character Set (GB) Additional Response object to the content standard that behind to set up the web server to the client in response to the document character encoding. One possible value “ISO_LATIN_1.”
Response.ContentType
In response to the contents of the specified type. Possible values are plain and image/GIF, default values text/HTML.
Response.Expires
The browser can cache the current page length, in minutes as a unit.
Response.ExpiresAbsolute
Browser can no longer cache pages of the current date and time. Not due until their return. If not specified, the Home expire at midnight on that day; If not specified date, the time of day specified maturity.
True/False=Response.IsClientConnected
Read-only attribute to specify since the last call Response.Write, client and server are still connected. The properties allow users in the client and server not connected to the case have more control. For example, from the client requests the server has played accordingly, which should last for a long time under the circumstances. This may help to ensure the continued script before the client is connected. With the value TRUE or FALSE.
Response.PICS (PICS string)
Add website for the PICS rating. PICS-level specification of a page-level content, such as violence or pornography and so on.
Response.Status= “state described the string”
Used to set up the Web server to respond to the state of the value.