在ASP里,
登录 | 论坛导航 -> 华新鲜事 -> 求学狮城 | 本帖共有 3 楼,当前显示第 2 楼 : 从楼主开始阅读 : 本帖树形列表 : 返回上一页
作者:大一的人 (等级:2 - 初出茅庐,发帖:127) 发表:2003-04-26 17:52:25  2楼  评分: 
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版只看此人从这里展开收起列表

本帖共有 3 楼,当前显示第 2 楼,本文还有 N-1 层楼,要不你试试看:点击此处阅读更多 >>



请登录后回复:帐号   密码