Signup · Login
Stardeveloper.com  
Home · Tutorials · Forums · ASP.NET Newsletter Application · Web Hosting Plans · Faisal Khan's Blog · Contact
Search Stardeveloper.com
Newsletter
Enter your email address to receive full length articles at Stardeveloper:


Article Categories
.NET  .NET
  ASP (16)
  ASP.NET (43)
  ADO (16)
  ADO.NET (11)
  COM (6)
  Web Services (4)
  C# (1)
  VB.NET (3)
  IIS (2)

J2EE  J2EE
  JSP (15)
  Servlets (9)
  Web Services (1)
  EJB (4)
  JDBC (4)
  E-Commerce (1)
  J2ME (1)
  Products (1)
  Applets (1)
  Patterns (1)

Main Category  Other
  Website Maintenance (3)
Log In
UserName Or Email:

Password:

Auto-Login:

Hosted by Securewebs.com
 
Home : .NET : ASP : Built in ASP objects - Active Server Pages Reference
 
Read full length articles at Stardeveloper using Twitter Follow on Twitter Facebook Facebook fan page Email Get Articles via Email RSS Get Articles via RSS Feed

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
Methods Description
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.

Events Description
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)
Collections Description
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.

Properties Description
TotalBytes An integer read-only value which gives the total number of bytes the client browser is to the server with each request.

Methods Description
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.

Previous ( 1 Gone )( 3 Remaining ) Next

Comments/Questions ( Threads: 8, Comments: 12 )
    Contains 1 or more replies by the Author of this Article.
    Contains 1 or more replies by Faisal Khan.

  1. Insert data in access
  2. can you plz help!! why this isn't workin'?? ( 2 Replies ) This thread contains 1 reply by the Author of this Article. This thread contains 1 reply by Faisal Khan.
  3. Calling VB Com Object
  4. Paging using Recordset in ASP
  5. asp tutorial ( 1 Reply )
  6. generate graph from database with ASP
  7. how to check the data stored in database in ASP
  8. Query for updating Records ( 1 Reply )

Post Comments/Questions

In order to post questions/comments, you must be logged-in. If you are not a member yet, then signup, otherwise login. Once you login then come back to this page and you'll see a form right here which will allow you to post comments/questions.

Please note, one of the benefits of signing up is to be notified immediately by email everytime you receive a reply to the thread you have subscribed.

 
© 1999 - 2010 Stardeveloper.com, All Rights Reserved.