例如:项目ProA
(VIEW) 文件夹 Brand -- 文件夹Sign -- index.cshtml
(Controllers) 文件Brand -- SignController.cs routes.MapRoute(
"Brand",
"Brand/{controller}/{action}/{id}",
new { controller = "Brand.Sign", action = "index", id = UrlParameter.Optional }
);
现在请问:在SignController 中的 index中 return View(CustInfo)时, MVC 3 会直接去找 VIEW-文件夹Sign下的index.cshtml,
直接跳过了文件夹 Brand ,提示错误,如何解决?
(VIEW) 文件夹 Brand -- 文件夹Sign -- index.cshtml
(Controllers) 文件Brand -- SignController.cs routes.MapRoute(
"Brand",
"Brand/{controller}/{action}/{id}",
new { controller = "Brand.Sign", action = "index", id = UrlParameter.Optional }
);
现在请问:在SignController 中的 index中 return View(CustInfo)时, MVC 3 会直接去找 VIEW-文件夹Sign下的index.cshtml,
直接跳过了文件夹 Brand ,提示错误,如何解决?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货