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...
- Modified
- 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...
- Modified
- 8 Oct at 16:2
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...
- Modified
- 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...
- Modified
- 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...
- Modified
- 16 Nov at 21:46
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...
- Modified
- 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 ...
- Modified
- 30 Jan at 08:45
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...
- Modified
- 11 Feb at 23:31
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...
- Modified
- 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...
- Modified
- 23 Feb at 08:9
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...