All source code in ASP/ VbScript Ask a ASP/ VbScript Pro Discussion Forum Categories All jobs in ASP/ VbScript
Quick Search for:  in language:    
ASP,brief,overview,object,model,will,submitti
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
ASP/ VbScript Stats

 Code: 281,252. lines
 Jobs: 101. postings

 How to support the site

 
Sponsored by:

 
You are in:
 
Login

NEW! LEARNING CENTER
Special educational offers, white papers, webcasts, podcasts

  NEW! Download Rational Performance Tester V8 (download now)
  NEW! Download Rational Functional Tester V8 (download now)
  NEW! Download Rational Service Tester for SOA Quality V8 (download now)
  NEW! Teleconference: Quality In Action - Using Rational Quality Manager with Functional, Performance and Web Service Testing Products (download now)
  NEW! Introducing IBM Rational AppScan Developer Edition – easing security testing by non-security professionals (download now)

 

 


Latest postings for ASP/ VbScript.
Web Online Examination
By Suhas Manjunath Kashyap on 11/7


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!



 
 
   

Intro to the ASP Object Model

Print
Email
 
article
Submitted on: 5/17/2000 5:30:58 PM
By: Brad Hess from http://www.4aspdev.com  
Level: Beginner
User Rating: By 2 Users
Compatibility:ASP (Active Server Pages)

Users have accessed this article 16153 times.
 
 
     A brief overview of the ASP object model. I will be submitting more tutorials on each object in future submissions.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.

Alright we have now written a very simple ASP page, but lets take some time and explore some of the built in features of ASP. The first thing that we should take a look at are the five intrinsic objects that are part of the ASP Scripting Context (an important note is that there is a sixth object which will be covered later). The diagram below shows the five main objects. They are the Request, Response, Application, Session, and Server.

 

Each of these objects has there its own methods and properties that the following sections are going to cover. To give a rough outline.

  • Request: This object exposes the properties of the HTTP request. A request is what is sent to the server when the browser asks for a particular action. For instance typing http://www.4aspdev.com/contact.asp is a request to the 4aspdev server for the contact.asp page. There is a lot more to it than that, but for now let's leave it at that.
  • Response: The response object exposes the properties of the server response. The response is what the server sends to the browser after a request is made. The response object allows you to:
    • Control what data is sent in the header of the HTTP response (don't worry if you don't know what a header is I will get to that later)
    • Control what data is sent to the client in the <:body> of the HTTP response
    • Control when and how the data is sent

  • Application: This object allow you to manipulate the properties of the application. In ASP an application is all the files in a virtual directory and its subdirectories. Application scope covers all users of the web site so if you set an application level variable or setting it will effect everyone that uses the site.
  • Session: This object allows you to control the properties on an individual user session. A session starts when a user first comes to you site and ends either when they leave, close their browser, or at a set timeout. Any variables or settings that are made using the session object are on an individual basis.
  • Server: This object effects the Server itself. This object allows you to control certain aspects of the server such as script timeout. Which is the time that a script is allowed to process.


Other 13 submission(s) by this author

 

 
 Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:
 
Your Vote!

What do you think of this article(in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
6/27/2001 1:59:17 PMLynda Falconer

I get a server error for the execute object when I try to link to the various Object lessons.

First page was nice and clear so I would like to see more... thanks
(If this comment was disrespectful, please report it.)

 
12/7/2001 1:43:54 PMjagi

fantastic
(If this comment was disrespectful, please report it.)

 
12/16/2002 6:30:36 AMJosef

yeah great stuff to know. But what about the rest ? The explinations are good and clear not like a manual. Perhaps you could build a manual with each lession. Could we link them up in say HTML or windows help file so we could follow the entire process through ?
(If this comment was disrespectful, please report it.)

 
6/3/2003 6:47:08 AM

neat stuff
(If this comment was disrespectful, please report it.)

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author from the email account you registered on the site, so you can correspond directly.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
To post feedback, first please login.


 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | ASP/ VbScript Home | Site Home | Other Sites | Open Letter from Moderators | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997-2008 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.   Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.