Hi all, In my WCF service class which is in the same project as my WebSite I inherit from System.Web.UI.Page so that I have access to the Page.Response object but when I use it I get the error: "Response is not available in this context."
I want to save to a file the results passes in to my WCF service like so:
public void SendList(List<ListType> listTypes)
{
Response.Clear();
Response.ContentType = "text/plain";
Response.AddHeader("content-disposition", "attachment; filename=filew.csv");
//etc
}
How can I do this if I can't access the Response object?