Posts Tagged ‘MVC’

ASP.NET MVC 3: Set up custom error pages to handle errors in “non-AJAX” requests and jQuery AJAX requests

In this blog post I will show how to set up custom error pages in ASP.NET MVC 3 applications to create user-friendly error messages instead of the (yellow) IIS default error pages for both “normal” (non-AJAX) requests and jQuery AJAX requests. In this showcase we will implement custom error pages to handle the HTTP error […]

Read more…

ASP.NET MVC 3: Use re-mix library to add controller actions with mixins

Update 2012-01-15 I’ve written a follow-up post “ASP.NET MVC 3: Use re-mix library to add controller actions with mixins – Part 2” that shows how to integrate Fabian’s suggestions into the approach described in this post. Update 2012-01-10 Fabian Schmied (re-mix developer) published a blog post “re-mix: Encapsulate and share ASP.NET MVC controller actions” which […]

Read more…

ASP.NET MVC 3: Strongly typed Authorize Attribute with multiple users and roles

The ASP.NET MVC 3 framework provides an Authorize attribute that enables you to easily restrict the access to specific controllers and/or actions to predefined roles or users. In detail, the controller or the action is marked with the Authorize attribute that defines which roles or users are granted access to the content which looks as […]

Read more…