[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。
发表人 主题:Application事件中不能使用Request.ServerVariables
嘎嘎,是我
身份:admin
发帖:1435
登陆次数:3225
1F 发表于 2007/4/4 16:50:45
可以通过Session事件实现:
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Sub Application_OnStart
  Application("txtOnStart") = true
End Sub

Sub Session_OnStart
  if Application("txtOnStart") = true then
    Application("txtPathInfo") = Request.ServerVariables("PATH_INFO")
    Application("txtInstanceId") = Request.ServerVariables("INSTANCE_ID")
    Application("txtOnStart") = false
  end if
End Sub
</SCRIPT>
    

 
标题:
消息图标:                                             
                                            
正文:



* UBB 代码开启

 
CopyRight © 心缘地方 2005-2999. All Rights Reserved