ASP built-in object

zhaozj2021-02-16  57

Active Server Pages offers built-in objects that make users easier to collect information, respond to browsers, and storage user information (such as user preferences) through the browser. This article briefly illustrates each object. For more information on each object, see References for Built-in Objects.

Application objects You can use the Application object to share information for all users of the given application. The Request object can use the Request object to access any information transmitted with HTTP, including parameters, cookies, and user authentication from the HTML form or get method. The REQUEST object allows you to access binary data sent to the server, such as uploaded. The Response object can use the Response object to control the information sent to the user. Includes direct sending information to the browser, redirect the browser to another URL or set the value of the cookie. Server object Server object provides access to methods and properties on the server. The most common way is to create an instance of the AC TIVEX component (Server.createObject). Other methods are used to encode the URL or HTML into a string, map the virtual path to the physical path and the timeout period for setting the script. The Session object can use the Session object to store the information required for a particular user session. When the user jumps between the pages of the application, the variables stored in the session object will not be cleared; and the user has access to the page in the application, these variables always exist. You can also explicitly end a session and set the timeout period of the idle session using the session method. ObjectContext objects can submit or undo transactions initialized by the ASP script using the ObjectContext object.

转载请注明原文地址:https://www.9cbs.com/read-22939.html

New Post(0)