Question

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 ?

Was it helpful?

Solution

you can simply pass parameters of action like this:

return RedirectToAction("Action","Controller", new {id=1,name="test",......})
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top