Yes. The example you showed is very close to many of the Microsoft provided samples for using Route Constraints. The routing engine acts as a pre-proxy (or router if you will) before the request is passed into a control. Items like IRouteConstraint are defined so you can do just what you described.
More Related Contents:
- Route with Two optional parameters in MVC3 not working
- Cascading drop-downs in MVC 3 Razor view
- Why does AuthorizeAttribute redirect to the login page for authentication and authorization failures?
- ASP.NET MVC Ajax Error handling
- Handling session timeout in ajax calls
- In MVC3 Razor, how do I get the html of a rendered view inside an action?
- How do you share scripts among multiple projects in one solution?
- ASP.NET MVC Routing Via Method Attributes [closed]
- Dependency Injection with Ninject and Filter attribute for asp.net mvc
- MVC 3 Model Binding a Sub Type (Abstract Class or Interface)
- HTML.ActionLink vs Url.Action in ASP.NET Razor
- ASP.NET MVC custom routing for search
- How to change ‘data-val-number’ message validation in MVC while it is generated by @Html helper
- Is there any good reason to use FormCollection instead of ViewModel?
- ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login
- pass enum to html.radiobuttonfor MVC3
- Best place to set CurrentCulture for multilingual ASP.NET MVC web applications
- ASP.NET MVC – Authenticate users against Active Directory, but require username and password to be inputted
- Is using ViewBag in MVC bad? [closed]
- MVC 3 file upload and model binding
- Does Razor syntax provide a compelling advantage in UI markup?
- Add a trailing slash at the end of each url?
- Implementing “Remember Me” Feature in ASP.NET MVC
- Having difficulty using an ASP.NET MVC ViewBag and DropDownListfor
- How to create a function in a cshtml template?
- How do I enable gzip compression when using MVC3 on IIS7?
- Disable client-side validation in MVC 3 “cancel” submit button
- Razor ViewEngine HTML.Checkbox method creates a hidden input. Why? [duplicate]
- How do I create a MVC Razor template for DisplayFor()
- View Model IEnumerable property is coming back null (not binding) from post method?