【发布时间】:2011-08-31 09:32:09
【问题描述】:
我使用路线
routes.MapRoute(
"Search",
"search/{categories}/{sections}/{actions}",
new { controller = "home", action = "search", categories = 0, sections = 0, actions = string.Empty }
);
示例:localhost:4304/search/64/0/0
加载资源时出现错误(500 或 404),因为方式 href="../../Content/Images/favicon.ico"
不向localhost:4304/Content/Images/favicon.ico进行行为
但进行到localhost:4304/search/Content/Images/favicon.ico(未找到)
所有资源(css、img、js)都有问题
【问题讨论】:
标签: asp.net asp.net-mvc-3 resources routing