Problem in using Response objects in c# windows application

Posted by Prabu_Spark under ASP.NET on 7/6/2013 | Points: 10 | Views : 1010 | Status : [Member] | Replies : 1
Hi sir,
I changed one web application to window application, in my code, i am using Response.Flush() Response.End(); Request.PhysicalApplicationPath. But it shows "Response does not exist in the current context".

I add a web reference to system.web.dll and used HttpContext.Current.Response.Flush(). But still showing error. I want to know
how to use Request and Response object in c# windows application. Kindly give me the solution for this problem.

With regards,


Posted by: Vuyiswamb on: 7/6/2013 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Response is for web not windows

Thank you for posting at Dotnetfunda

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response