To install from NuGet:
Install-Package System.Web.Mvc.Expressions
For other interesting packages check out:
Currently supported in Controller (add "using System.Web.Mvc.Expressions;"):
- RedirectToAction<HomeController>(c => c.Index())
- RedirectToActionPermanent<HomeController>(c => c.Index())
- AddModelError<FooInputModel>(m => m.Bar, "Invalid value for Bar.")
- AddModelError<FooInputModel>(m => m.Baz, new ArgumentException("Invalid value for Baz.")
Currently supported in Views (add namespace "System.Web.Mvc.Expressions" to the web.config file in the Views folder):
- Html.ActionLink<HomeController>(c => c.Index(5))
- Html.BeginForm<HomeController>(c => c.Index(5))
- Html.RenderAction<HomeController>(c => c.Index(5))
- Html.Action<HomeController>(c => c.Index(5))
- Url.Action<HomeController>(c => c.Index(5))
- Ajax.ActionLink<HomeController>(c => c.Index(5))
- Ajax.BeginForm<HomeController>(c => c.Index(5))
More info:
RouteAttribute
, RoutePrefixAttribute
and RouteAreaAttribute
.ActionNameAttribute
which value overrides the action name when generating URL.Authors:
Contributors:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4