2012年11月29日

ViewData,ViewBag,TempData

摘要: public class HomeController : Controller{ public ActionResult Home() { ViewData["VD"] = "view data"; ViewBag.Name = "view bag"; TempData["TD"] = "temp data"; return View(); } //以上三个在Home View 中可以直接访问 [HttpPost] public ActionResult Home() {String vd = 阅读全文

posted @ 2012-11-29 13:53 Gcam 阅读(376) 评论(0) 推荐(0) 编辑

导航