当前位置: 代码迷 >> Web Service >> mvc中view的路径设置解决思路
  详细解决方案

mvc中view的路径设置解决思路

热度:185   发布时间:2016-05-02 02:19:14.0
mvc中view的路径设置
 页面<a href="main.cshtml" target="_parent"><img src="images/logo.png" title="系统首页" /></a>
Controllers里面
 [LoginAllowView]
        public ActionResult Index()
        {
            var model = GetParentModule();
            return View("Main", model);
           
        }
怎么访问不了呢
------解决方案--------------------

写错了吧  应该是路由的链接格式吧 比如  "news/index".
  相关解决方案