Вопрос

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 ?

Это было полезно?

Решение

you can simply pass parameters of action like this:

return RedirectToAction("Action","Controller", new {id=1,name="test",......})
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top