MVC 小笔记

一些关于Htmlhelper 和userhelper

Code

 

 

 

 

重定向、Redirect

 // Response.Redirect("/user/edit");
 // return Redirect("/user/edit");
 //  return RedirectToAction("index", "home");

URL Routing

 routes.MapRoute(
                "Default",                                                      // Route name
                "{controller}/{action}/{id}",                           // URL with parameters
                new { controller = "Home", action = "Index", id = "" }  // Parameter defaults

posted @ 2009-09-15 21:41  xumingming  阅读(296)  评论(0编辑  收藏  举报