Is there a strongly typed RedirectToAction in ASP.NET MVC 2?

I want to do something like this:

return RedirectToAction<SomeController>(c => Index(someparameter)); 

How to do it?

Thanks D.

+4
source share
2 answers

This is a feature of the MvcContrib project.

Just download MvcContrib from here , add the link to MvcContrib.dll in your project, and then you can do exactly what you want.

+4
source

is something wrong with?

 return RedirectToAction("Action", "Controller", new { parameter1 = value, param2 = value2 }); 
0
source

All Articles