Pergunta

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 ?

Foi útil?

Solução

you can simply pass parameters of action like this:

return RedirectToAction("Action","Controller", new {id=1,name="test",......})
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top