例如:项目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 ,提示错误,如何解决?
解决方案 »
- asp.net+access 时间问题
- 大家帮我看看是什么问题??
- 新建Word时出现“内存不足,请现在保存文档”的错误,请教高手如何解决?
- 谈谈大家使用的 关系-对象 模型
- 这个是什么原因啊?
- 安装SQLServer2005的问题
- ASP.NET中GridView控件开发问题:无法触发GridView1_RowCommand(object sender, GridViewCommandEventArgs e)方法
- 水晶报表——谢谢
- 如何向asp.net开发环境中添加一个下载的控件?
- 在VS.NET开发环境中,在Solution Explorer中的References的具体作用是什么?还有AssemblyInfo.cs文件是干什么的?“.vsdisco”文件又是做
- VIEW与Controllers多层文件夹时,Controllers如何定向VIEW
- 只允许上传 GIF JPG类型的文件
直接把views跟area的dll放到web下面就可以运行.