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 should only have one global.asa and it should 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 expect 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.
標(biāo)簽:溫州 鐵嶺 昆明 家電維修 麗江 泰州 咸陽 昌都
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《javascript asp教程第十課--global asa》,本文關(guān)鍵詞 javascript,asp,教程,第十,課,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。