Can someone show me how I would pass an HttpRequest object into a class library using VB.NET?
Posted on 2006-07-21
Here is the problem:
I have a class library, and one of the possible inputs into this class library is the System.Web.HttpRequest. However, once I separated the classes and placed them into a class library (they were initially coded directly into a new website project, which hada access to System.Web.HttpRequest), I no longer have access to this object!
I see there is a System.Net.HttpWebRequest class available though. Can I use this to accept an object of type System.Web.HttpRequest? And how would I do this? Since this seems to be a very advanced .NET question, and I am desperate to move the code to a class library (so I can call the class library from a web service), I am awarding 500 pts to whomever or whoever can show me how to be able to accept the System.Web.HttpRequest object in a class library.
Thanks so much for your help.