|
The ObjectContext Object
The ObjectContext object is used to commit or abort transactions. For an .asp
page to commit transaction, @TRANSACTION directive should be present in the
script.
Syntax
ObjectContext.method
| SetAbort |
Aborts the transaction initiated by
the ASP script. |
| SetComplete |
Declares that there is no reason for
the transaction not to complete. So if all the components taking part in
the transaction also call SetComplete method then the transaction
will complete. |
| OnTransactionAbort |
This event occurs when the transaction
is aborted. |
| OnTransactionCommit |
This event occurs when the transactional
script's transaction is committed. |
The Request Object
The Request object makes available all the values that client browser passes
to the server during an HTTP request. It includes client browser info, cookie
details ( of this domain only ), client certificates ( if accessing through SSL
) etc.
Syntax
Request.collection|property|method (variable)
| ClientCertificate |
Makes us available a collection of
values stored in the client certificate that is sent to the HTTP request.
It is usually of interest when the client is requesting secure pages
through SSL connection. But before using this collection the server should
be configured to request client certificates. |
| Cookies |
Makes us available all the cookies
stored in the client browser for this domain. |
| Form |
Collection of all the values of Form
element in the HTTP request. |
| QueryString |
Collection of variables which are
stored in the HTTP query string. Name / value pairs can also be appended
to the URL after the end of page name e.g. "http://www.stardeveloper.com/asp_request.asp?author=Faisal+Khan"
contains one variable 'author' with a value of 'Faisal Khan'. |
| ServerVariables |
Contains a collection of predetermined
environment variables plus a collection of all the HTTP header values sent
from the client browser to the server. |
| TotalBytes |
An integer read-only value
which gives the total number of bytes the client browser is to the server
with each request. |
| BinaryRead |
Retrieves data sent to the server from
the client in raw format as part of the POST request. It saves all this
data in a SafeArray. |
The ObjectContext Object
The ObjectContext object is used to commit or abort transactions. For an .asp
page to commit transaction, @TRANSACTION directive should be present in the
script.
Syntax
ObjectContext.method
| SetAbort |
Aborts the transaction initiated by
the ASP script. |
| SetComplete |
Declares that there is no reason for
the transaction not to complete. So if all the components taking part in
the transaction also call SetComplete method then the transaction
will complete. |
| OnTransactionAbort |
This event occurs when the transaction
is aborted. |
| OnTransactionCommit |
This event occurs when the transactional
script's transaction is committed. |
The Request Object
The Request object makes available all the values that client browser passes
to the server during an HTTP request. It includes client browser info, cookie
details ( of this domain only ), client certificates ( if accessing through SSL
) etc.
Syntax
Request.collection|property|method (variable)
| ClientCertificate |
Makes us available a collection of
values stored in the client certificate that is sent to the HTTP request.
It is usually of interest when the client is requesting secure pages
through SSL connection. But before using this collection the server should
be configured to request client certificates. |
| Cookies |
Makes us available all the cookies
stored in the client browser for this domain. |
| Form |
Collection of all the values of Form
element in the HTTP request. |
| QueryString |
Collection of variables which are
stored in the HTTP query string. Name / value pairs can also be appended
to the URL after the end of page name e.g. "http://www.stardeveloper.com/asp_request.asp?author=Faisal+Khan"
contains one variable 'author' with a value of 'Faisal Khan'. |
| ServerVariables |
Contains a collection of predetermined
environment variables plus a collection of all the HTTP header values sent
from the client browser to the server. |
| TotalBytes |
An integer read-only value
which gives the total number of bytes the client browser is to the server
with each request. |
| BinaryRead |
Retrieves data sent to the server from
the client in raw format as part of the POST request. It saves all this
data in a SafeArray. |
|