3
如果有1.jpg
形象,所以它被下載和顯示默認情況下不應該MVC忽略圖像?
<img src="Content/Pages/1.jpg" />
但是,如果在頁面文件夾中沒有1.jpg
形象,所以我得到以下錯誤
The controller for path '/Content/Pages/1.jpg' could not be found or it does not implement IController.
我固定它通過註冊路由到IgnoreRoute
,但不應該忽略默認的圖像?
routes.IgnoreRoute("Content/{*pathInfo}");