Login

Latest postings for ASP/ VbScript.
Daily Code Email
|
|
| | |
| | | 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 | | | | | Your Vote! | |
See Voting Log | | | | Other User Comments |
6/27/2001 1:59:17 PM: Lynda 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 PM: jagi
fantastic (If this comment was disrespectful, please report it.)
|
12/16/2002 6:30:36 AM: Josef
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. | |
|