I Have following code:
Controller:
public ActionResult Step1()
{
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Step1(FormCollection form)
{
TempData["messageStatus"] = new Random().Next(1, 1000);
return RedirectToAction("Step1");
}
View:
<%=TempData["messageStatus"]%>
in first time in view im getting 12345 for example, but when i request second time of course i must get something else instead 12345 for example 54321 but not, im getting same result 12345, how can u explain it? RedirectToAction cache pages?
where does it mean i must put Guid in my urls for resolving problems with cache? what do u think about this issue?