2015-05-20 66 views
0

我在編程和Mvc中很新。我創建了一個ActionResult。我想從視圖中調用它。我的代碼如下。從Mvc中查看調用ActionResult

public class HomeController : Controller 
    { 
     public ActionResult Index() 
     { 
      return View("a"); 
     } 

    } 

回答

0

使用Html.Actionlink

例如,

@ Html.ActionLink( 「家」, 「索引」, 「家」)