Jump to content

Welcome to Card Game DB
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!

- - - - -

Active Server Pages

Posted by Knothat , 11 October 2021 · 112 views

The response object will send the results of any server side scripts back to the user's browser. It has methods to add headers telling the browser when to expire the page, what character set to use and can even detect if the connection originally used to request the page has been closed. This can be a handy feature as it can stop scripts when there is no one there to see the page, thus saving data transfer and server resources.

Not only does the response object control what gets sent back to the browser, but also how it gets sent back. It is possible to buffer the response and send it back when the whole script is finished, or you could send the data back in chunks to let your visitors know that it is still working.

The request object holds all the information that has been sent from the user that can be used in your scripts. This includes any page headers, cookies, form or URL data. Fortunately, all this data has been parsed to some degree and so you don't need to worry about breaking it all down and putting it back together again; just remember to make sure that it is safe to use!

The server object is mainly used as a utility object; helping create new instances of add-in ASP objects, find the real path of a file and converting output to make it more browser friendly. It can also be used to set the server time out response, which is handy for scripts that need a longer time to execute without sending any output to the browser.

The session object works a little like the application object, but is specific to the user and the browser they are using. It can make a viable alternative to cookies used to store and move data between scripts, help write my essay but as sessions tend to expire very quickly (usually 20 minutes after last activity) they can only store data temporarily.

Expanding ASP capabilities
There are other objects that are additional to the built in objects listed above that can be used to provide additional functionality.

FileSystemObject - allows ASP pages to interact directly with files stored anywhere on the host server (which is why a few hosts have this disabled). This is a useful object; Web Site Owner relies on it to create the pages.
CDONTS (Collaboration Data Objects for Windows NT Server) - used to send and receive messages, this object is Microsoft's offering of adding mail capabilities to a site. As the name suggests, it is a little dated now and most of the hosts I've asked tend to prefer other 3rd party objects to do the same job; JMail and ASPEmail being two prefererred replacements.
ADO (ActiveX Data Objects) - used to interact with databases (either physical or those created in working memory).
ASP may not be as fast as some of the scripting languages available today, but it is the easiest for a beginner to learn and with a little imagination and a logical mind it can do a wide variety of things.

Trackbacks for this entry [ Trackback URL ]

There are no Trackbacks for this entry

August 2022

141516 17 181920

Recent Entries