Hi,
I have a page. (action) and a controller called Widget. im passing in client as a string.
I want to be able to pass in the client from one page to the next, as well as the other fields posted.
what am i doing wrong below? client is coming up as null
eg: Widet/Page2/clientABC
public ActionResult Page2(string client)
{
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Page2(string client, string sector)
{
return RedirectToAction("Page3", new { client = client, sector = sector });
}
public ActionResult Page3(string client, string sector)
{
return View();
}