Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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 :)
Posted

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.
 
Share this answer
 
Comments
ayat abukhadra 17-Nov-12 0:18am    
not for the application path its for controlling the webpage :)
application object is same for all subfolders but the session object will change
 
Share this answer
 
Comments
ayat abukhadra 17-Nov-12 0:18am    
ah, ok amazing :) thanks for helping :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900