Custom C# Classes in ASP.NET

  • Thread starter Thread starter David Quinn
  • Start date Start date
D

David Quinn

Hi everyone

I've spent my first afternoon playing around with ASP.NET and have to say
I'm so impressed with it! But I already have a few questions. I created a
class so I can use some custom objects in my application but had trouble
accessing anything outside the class (ie the Session, Application or even
global variables) from methods inside the class.
Is is possible to access these objects?

thanks, David
 
David Quinn said:
Hi everyone

I've spent my first afternoon playing around with ASP.NET and have to say
I'm so impressed with it! But I already have a few questions. I created a
class so I can use some custom objects in my application but had trouble
accessing anything outside the class (ie the Session, Application or even
global variables) from methods inside the class.
Is is possible to access these objects?

thanks, David

HttpContext.Current (and then .Application, .Session etc)


Hans Kesting
 
Back
Top