Tilt-logo

Things I Learned Today - our daily eureka-moments

Carr
proppi
Edland
feenyx
Programming .NET VS2010 Web Windows VS2012 S3 Search SQL SqlMetal Accessibility Amazon Android App BBQ EBS EC2 Exchange Food Garmin Geocaching GPS Grill Java Linq Lucene MVC PowerShell
Showing posts tagged "MVC" Show all  
  Page 1 of 1

You don't Response.Redirect() from an ActionFilterAttribute - Carr, 17.08.2011

In ASP.NET webforms, performing a Response.Redirect(url, true) would end the response and halt execution. Doing the same in an MVC3 ActionFilterAttribute will still redirect the client, but won't halt execution of the calling action. Not cool. Here's the solution.