There are many different ways to persist data across multiple requests.
- Cookies
- Database layer
- View state (render the data down and pass it back up in each request)
to name a few. The simplest of these is probably a view state implementation. You can roll your own like this
<input type="hidden" name="question_1" value="<%=ViewData["question_1"]%>" />
This input will get reposted in the next submission, so you can keep track of the value.
public ActionResult Step1Post(string answer)
{
ViewData["question_1"] = answer;
return View("Step2")
}
public ActionResult Step2Post(string answer, string question_1)
{
question_1; // the answer from step 1
answer; // the answer from step 2
}