![]() |
Add HttpRequest class to windows application
Hi EveryBody:
I want to add HttpRequest class to my windows application, I add the System.Web.dll to my project as refreance . but I still get the blue Line under HttpReqesut class as error. Some body can help me or redirect me to do it right? any help will be appreciated regard's Husam |
Re: Add HttpRequest class to windows application
HttpRequest is part of the asp.net IIS request wrapper. What are you
trying to do with it in a windows app? if you want your windows app to host asp.net look at the httpruntime. you want to create an appdomain to load the runtime in, create a page instance, build a request object and call process. -- bruce (sqlwork.com) Husam wrote: > Hi EveryBody: > > I want to add HttpRequest class to my windows application, I add the > System.Web.dll to my project as refreance . but I still get the blue Line > under HttpReqesut class as error. > > Some body can help me or redirect me to do it right? > > any help will be appreciated > > regard's > > Husam |
Re: Add HttpRequest class to windows application
Hi Husam
What are you trying to do? The HttpRequest object only exists in the context of an ASP.NET web page because it represents information sent by the web browser, which is not applicable for a desktop application. However, it is possible to host the ASP.NET runtime inside a WinForms application using an HttpRuntime object, but this is rarely needed and only useful for quite specialised requirements. Chris On Sep 25, 4:46 am, Husam <Hu...@discussions.microsoft.com> wrote: > Hi EveryBody: > > I want to add HttpRequest class to my windows application, I add the > System.Web.dll to my project as refreance . but I still get the blue Line > under HttpReqesut class as error. > > Some body can help me or redirect me to do it right? > > any help will be appreciated > > regard's > > Husam |
| All times are GMT. The time now is 09:28 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.