Colin,
If you always want it to be included then require it as a parameter of your
class' sub new:
Private _HttpApplication
Public Sub New(ByRef httpApplication As System.Web.HttpApplication)
_HttpApplication = httpApplication
End Sub
If you just need it for one method inside of your class declare it as a
parameter of that method itself
Public Sub MyMethod(ByRef httpApplication As System.Web.HttpApplication)
End Sub
You should use ByRef instead of ByVal so that if you store something in the
HttpApplication.Context object or make other changes to it's properties they
will be reflected throughout the application.
--
Sincerely,
S. Justin Gengo, MCP
Web Developer / Programmer
www.aboutfortunate.com
"Out of chaos comes order."
Nietzsche