首页 新闻 会员 周边 捐助

mvc2 Controller 小白问题

0
悬赏园豆:10 [已关闭问题]

 

  public ActionResult Add(Application application)
{
if(TempData["ApplicationObj"] != null)
{
application
= TempData["ApplicationObj"] as Application;
}
return View(application);
}

[HttpPost]
public ActionResult Create(Application application)
{
application
= CheckApplicationInfo(application);
if (application.Msgs.Count > 0)
{
return RedirectToAction("Add");
}
TempData[
"ApplicationObj"] = application;
return RedirectToAction("Add");
}

 

在Create里面如何跳转到Add的同时,把application传给他,貌似用TempData不行

马可香蕉的主页 马可香蕉 | 初学一级 | 园豆:120
提问于:2010-07-07 14:36
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册