Answer
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 2 楼,分 1 页, 当前显示第 1 页 : 本帖树形列表 : 刷新 : 返回上一页
<<始页  [1]  末页>>
作者:大一的人 (等级:2 - 初出茅庐,发帖:127) 发表:2003-04-26 17:52:25  楼主  关注此帖评分:
在ASP里,那个global.asa是干什么用的啊?
Answer
One of the features of an application is that you can store information that is available to all clients that are accessing the application. This information is stored in what is know as an application-scope variable.

To initialize variables in the Application object, you store the information about them in a special ASP file named global.asa. Each application has only one global.asa, placed in the application root.

possible example of global.asa:

<script language="VBScript" runat="Server">

Sub Application_OnStart
Application("myAppVariable") = " "
Application("anotherAppVariable") = 0
End Sub

</script>
Put your OWN COOL signature here!
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
作者:大一的人 (等级:2 - 初出茅庐,发帖:127) 发表:2003-04-26 17:55:15  2楼
AnswerOne of the features of an application is that you can store information that is available to all clients that are accessing the application. This information is stored in what is know as an application-scope variable. To initialize variables in the Application object, you store the information about them in a special ASP file named global.asa. Each application has only one global.asa, placed in the application root. possible example of global.asa: Sub Application_OnStart Application("myAppVariable") = " " Application("anotherAppVariable") = 0 End Sub
its function is somehow similar to
the *.ini file in a windows application
(or *.h file in a C source)
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!原文 / 传统版 / WAP版所有回复从这里展开收起列表
论坛导航 -> 华新鲜事 -> 求学狮城 | 返回上一页 | 本主题共有 2 篇文章,分 1 页, 当前显示第 1 页 | 回到顶部
<<始页  [1]  末页>>

请登录后回复:帐号   密码