Click here to Skip to main content
12,447,242 members (58,832 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: ASP.NET
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 Smile | :)
Posted 13-Nov-12 23:32pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
ayat abukhadra 17-Nov-12 0:18am
   
not for the application path its for controlling the webpage :)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

application object is same for all subfolders but the session object will change
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 14 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100