How to pass List in Redirecttoaction

You cannot pass a collection of complex objects in urls when redirecting.

One possibility would be to use TempData:

TempData["list"] = fadd.ToList();
return RedirectToAction("Question", new { email = email});

and then inside the Question action:

var model = TempData["list"] as List<QuestionClass.Tablefields>;

Leave a Comment