Class Library accessing Application object

  • Thread starter Thread starter William Gower
  • Start date Start date
Use the HttpContext.Current.Application to get there. Don't forget to
include the System.Web namespaces in the class.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
With HttpContext.Current.Application. Though you might want to
abstract that detail away, if you want to use your class library
outside of a web application.
 
Back
Top