摘要:
所看到的Action都是return View();我们可以看作这个返回值用于解析一个aspx文件。而它的返回类型是ActionResult如public ActionResult Index() { return View(); }除了View()之外那我们这里还能用于返回什么值呢?一、ascx页面场景:要返回代码片断,比如Ajax返回一个子页我们先新建一个Action public ActionResult Ascx() { return PartialView(); }我们下面再建一个Vi... 阅读全文
posted @ 2012-10-09 11:50
黄靖洆
阅读(4021)
评论(0)
推荐(2)

浙公网安备 33010602011771号