Frage

I want to pass 7 querystring value from one ctroller to another controller action.

In my old applicaiton, I was passing these value into query string in URL.

Now, in MVC 4, please suggest me how i could include in "RedirecttoAction" or any other way ?

War es hilfreich?

Lösung

you can simply pass parameters of action like this:

return RedirectToAction("Action","Controller", new {id=1,name="test",......})
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top