1

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 ?

Madhu
  • 2,416
  • 3
  • 15
  • 33
dsi
  • 3,199
  • 12
  • 59
  • 102
  • Possible duplicate of http://stackoverflow.com/questions/1067200/how-to-add-querystring-values-with-redirecttoaction-method http://stackoverflow.com/questions/12180387/setting-query-string-in-redirecttoaction-in-asp-net-mvc/14266410#14266410 – Oasis Apr 02 '14 at 05:43

1 Answers1

5

you can simply pass parameters of action like this:

return RedirectToAction("Action","Controller", new {id=1,name="test",......})
Ehsan Sajjad
  • 61,834
  • 16
  • 105
  • 160