[[[[[Controller]]]]]
[HttpGet]
public ActionResult A(string Hi, string How)
{
Session["Hi"] = Hi;
Session["How"] = How;
//return RedirectToAction("B");
return RedirectToAction("B", "Controller", new { Hi = Hi, How = How });
}
[HttpGet]
public ActionResult B(string Hi, string How)
{
FormResult Outer= new FormResult();
Outer.Hi = Hi== null ? (string)Session["Hi"] : Hi;
return View();
}
[[[[[View]]]]]
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<ANZ.Models.FormResult >" %>
<%= Html.HiddenFor(model => model.Hi)%>
沒有留言:
張貼留言