User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 422,787 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,368 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 2328 | Replies: 2
Reply
Join Date: Aug 2004
Posts: 6
Reputation: ralaing is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ralaing ralaing is offline Offline
Newbie Poster

Application State question

  #1  
Sep 7th, 2004
How do I reference an application state variable from a .net component class?

I know how to do it from a web page, eg. application("myVariable"). But this doesn't work in my business object.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2004
Location: UK
Posts: 9
Reputation: InstantASP Ltd is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
InstantASP Ltd's Avatar
InstantASP Ltd InstantASP Ltd is offline Offline
Newbie Poster

Re: Application State question

  #2  
Sep 10th, 2004
Use the HttpContext class - System.Web.HttpContext.Current
Kindest Regards,

Ryan Healey
InstantASP Ltd
ASP.NET Collaboration and Support Tools

http://support.instantasp.co.uk/imag...ntasp_logo.gif
Reply With Quote  
Join Date: Aug 2004
Posts: 6
Reputation: ralaing is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ralaing ralaing is offline Offline
Newbie Poster

Re: Application State question

  #3  
Sep 14th, 2004
Brilliant - thank you very much.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 8:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC