Urgent - Passing the Context object to a DLL

Very Urgent Please!!!!

I have a DLL (Class Library) written in VB.NET that I want to call various
methods from a ashx handler.
What I want to do is pass the context object to the DLL and let it go through
all the QueryString, etc.. stuff and gather all the info for processing since the
DLL is already compiled (CRL).
This way, the ashx page only has to have 2 or 3 lines and then it can pass the
context object on to the DLL for processing.
However, the ashx defines the context object as 'System.Web.HttpContext'
In the DLL, there is NO 'System.Web.HttpContext' object.
There is 'System.Net.Http????' and even a 'System.Net.HttpContextListener'.
However, the aspx page will not build.

How can I pass the context object to my DLL so I can extract all the info I need?
        If context.Request.RequestType.ToUpper = "GET" Then
            xtw.WriteAttributeString("METHOD", context.Request.QueryString("Request"))
            xtw.WriteAttributeString("POINT", context.Request.QueryString("Point"))
        ElseIf context.Request.RequestType.ToUpper = "POST" Then
            xtw.WriteAttributeString("METHOD", context.Request.Form("Request"))
            xtw.WriteAttributeString("POINT", context.Request.Form("Point"))
        End If
       
        RequestDataStart(xtw)
       
        RequestData(xtw, "UserHostAddress", context.Request.UserHostAddress)
        RequestData(xtw, "UserHostName", context.Request.UserHostName)
        'RequestData(xtw, "UrlReferrer", context.Request.UrlReferrer.ToString)
        RequestData(xtw, "RequestType", context.Request.RequestType)
        RequestData(xtw, "ApplicationPath", context.Request.ApplicationPath)
        RequestData(xtw, "HttpMethod", context.Request.HttpMethod)
        RequestData(xtw, "IsAuthenticated", context.Request.IsAuthenticated.ToString)
       
        If context.Request.RequestType.ToUpper = "GET" Then
            Dim MaxCount As Int32 = context.Request.QueryString.Count - 1
            For Count As Int32 = 0 To MaxCount
                RequestData(xtw, context.Request.QueryString.Keys(Count), context.Request.QueryString.Item(Count))
            Next Count
        ElseIf context.Request.RequestType.ToUpper = "POST" Then
            Dim MaxCount As Int32 = context.Request.Form.Count - 1
            For Count As Int32 = 0 To MaxCount
                RequestData(xtw, context.Request.Form.Keys(Count), context.Request.Form.Item(Count))
            Next Count

Thanks in advance.
LVL 6
BenClarkAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

5thcavCommented:
this may get you started...

System.Web.HttpContext.Current:

Dim myAppVar As string = HttpContext.Current.Application("APPLICATION_VARIABLE_NAME")
Dim mySessVar As string = HttpContext.Current.Session("SESSION_VARIABLE_NAME")


http://samples.gotdotnet.com/quickstart/aspplus/doc/datacaching.aspx

http://www.c-sharpcorner.com/Code/2004/Sept/ASP.NetPostURL.asp

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.