tagged [response]

Return a response and file via servicestack

Return a response and file via servicestack I am working on a project where we have a database and a separate file system both stored on the same server and are accessed through service stack requests...

23 Jan at 01:52

How to avoid "Response.Redirect cannot be called in a Page callback"

How to avoid "Response.Redirect cannot be called in a Page callback" I'm cleaning up some legacy framework code and a huge amount of it is simply coding by exception. No values are checked to see if t...

How to ensure an OnEndRequest filter runs in ServiceStack after a request is failed by ValidationFeature's global filter?

How to ensure an OnEndRequest filter runs in ServiceStack after a request is failed by ValidationFeature's global filter? I have a ServiceStack API (3.9.58). I'm using statsd to time request-execution...

23 May at 11:50

adding header to http response in an action inside a controller in asp.net/mvc

adding header to http response in an action inside a controller in asp.net/mvc I am streaming data from server to client for download using `filestream.write`. In that case what is happening is that I...

19 Apr at 10:2

ResponseStatus xmlns d2p1

ResponseStatus xmlns d2p1 The question is: how to use one namespace for response, when using `IHasResponseStatus` and `public ResponseStatus ResponseStatus { get; set; }` property, and remove the pref...

ASP.Net MVC 3 Razor Response.Write position

ASP.Net MVC 3 Razor Response.Write position I am trying to update [this tutorial](http://jmperezperez.com/tutorial-how-to-implement-bigpipe-using-asp-net-mvc-part-1/) on implementing Facebooks BigPipe...

28 Aug at 08:59

java.lang.IllegalStateException: Cannot (forward | sendRedirect | create session) after response has been committed

java.lang.IllegalStateException: Cannot (forward | sendRedirect | create session) after response has been committed This method throws > java.lang.IllegalStateException: Cannot forward after response ...

Response.Redirect not working in Global.asax

Response.Redirect not working in Global.asax I have created an error page to show a general message for all unhandled exceptions. This is the code in Global.asax ``` HttpContext ctx = HttpContext.Curr...

Return generated pdf using spring MVC

Return generated pdf using spring MVC I am using Spring MVC .I have to write a service that would take input from the request body, add the data to the pdf and returns the pdf file to the browser. The...

27 Apr at 16:9

Can't get error message on BadRequest in Web Api 2

Can't get error message on BadRequest in Web Api 2 I've googled a lot searching for an answer to my problem with no luck so, let's try if someone else can help me. I have a Web Api 2 action to registe...

HttpResponse.End vs HttpResponse.Close vs HttpResponse.SuppressContent

HttpResponse.End vs HttpResponse.Close vs HttpResponse.SuppressContent Within an ASPX page, I want to end the response at specific points (not due to an error condition), depending on code path, so th...

23 May at 12:25