应用对象? [英] Application object ?

查看:54
本文介绍了应用对象?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我最近创建了一个asp.net网站,该网站使用该应用程序对象限制了登录用户的数量,现在我必须为(Desktop,Mobile,PDA)创建子文件夹
我想知道的是,所有子文件夹的应用程序对象都是相同的,或者不是?我必须创建一个通用页面并检查那里的应用程序对象吗?

预先感谢您的帮助:)

Hello,
I''ve recently created an asp.net website which i limited the number of logged in users using the application object, Now i have to create sub folders for(Desktop,Mobile,PDA)
what i wanna know is the application object is the same for all my sub folders or its not ?? do i have to create a common page and check there the application object ?

Thanks in advance for helping :)

推荐答案

您不应该在网站中使用Application对象-而是使用Server.MapPath(〜")来获取Web应用程序的根文件夹,或Server.MapPath(.")以获取相对于当前网页的路径.
You shouldn''t need the Application object in websites - instead use Server.MapPath("~") instead to get the root folder of the web app, or Server.MapPath(".") to get the path relative to the current web page.


应用程序对象对于所有子文件夹均相同,但会话对象将更改
application object is same for all subfolders but the session object will change


这篇关于应用对象?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆