Since I have decided to let RC go while staying with Beta for now, I have no way of knowing whether a strongly typed RedirectToAction
has been added. Has anybody tried it and is there a strongly typed RedirectToAction
(and maybe ActionLink
) in RC?
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- parameters in routing do not work MVC 3
- There is no ViewData item with the key 'taskTy
- TextBoxFor decimal
- Install ASP.NET 5.0 version of System.ServiceModel
相关文章
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
- entity type has no key defined - Code first
You can use
return RedirectToAction(nameof(Index));
This is also included in MVC Contrib as an extension method on your controller, along with a lot of other strongly typed goodies for ModelState handling, testing, etc. It's well worth taking on the extra dependency for what it offers.
No, it doesn't.
That should work.
If you don't want the full MvcContrib library, you can get just this feature by using the MvcNavigationHelpers NuGet package.