Ajax.ActionLink("列表", "List",...
List的Action是默认Controller里的,如果想要指定的Controller下,怎么做

解决方案 »

  1.   

    你看看重载的方法哪个有Controller参数,填写相应的Controller名称应该就行了
      

  2.   

    Ajax.ActionLink("列表", "List",...比如我在Product下面查看列表 那Controller就默认 Product我想在Product下面, 可以点击 Content 下的List
      

  3.   

    Ajax.ActionLink("列表", 
        "List", 
        "Content", ...)
      

  4.   

    Ajax.ActionLink("LinkText","actionName","contollerName", new AjaxOptions())
      

  5.   

    是的,上面两位的正确
    Ajax.ActionLink("列表",  "List",   "Content", ...)
    我想在List这个Action里面return RedirectToAction("List", RouteData.Values);【这个是Content的List】
    又回到Product的List,可以实现吗?
      

  6.   

     return RedirectToAction("List", "Product");