Javascript ASP tutorial Lesson 10-Global ASA

Source: Internet
Author: User

Global. Asa:

First of all, what is a global. ASA? It's an optional script file that holds certain "Global" information that you can access through the entire ASP appliciation. The Global. ASA is a plain text file saved with the. Asa extension.

You shoshould only have one global. Asa and it shoshould go in your top level directory.

Below is an example global. Asa file. Don't try to understand the script just yet. We'll get to the specifics in the next two lessons.

<Object runat = server scope = session ID = myinfo progid = "mswc. myinfo "> </Object> <SCRIPT runat =" server "Language =" JavaScript "> function application_onstart () {application (" somevariablename ") = "some value"} function application_onend () {application. contents. removeall ()} function session_onstart () {session. timeout = 15} function session_onend () {// do nothing} </SCRIPT> <! -- Metadata type = "typelib" file = "C: \ Program Files \ common files \ System \ ADO \ msado15.dll" -->

List of can do's:

There are four things you can do with a global. Asa.

1) object declarations
2) Application events
3) session events
4) library reference.

I don't have CT you understand any of that yet. Just remember, there are only a few things we can do with the global. Asa. Let's move on to Lesson 11.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.