Using RedirectToAction with custom type parameter
Posted
by
user170497
on Stack Overflow
See other posts from Stack Overflow
or by user170497
Published on 2011-02-24T05:46:46Z
Indexed on
2011/02/24
7:25 UTC
Read the original article
Hit count: 151
asp.net-mvc-2
Hi
asp.net mvc 2
I have this action in Identity controller
public ActionResult Details(string id, MessageUi message)
{
And I'm trying to redirect to this action from another controller, but I don't know how should I pass the message parameter
I was trying with
var id = "someidvalue"
var message = new MessageUi("somevalue");
return RedirectToAction("Details", "Identity", new { id, message});
}
but message parameter is null
© Stack Overflow or respective owner