0
爲什麼在使用Url.Content
時必須將/Content/
添加到uri中?什麼是有用的方法? :)我錯過了什麼?爲什麼在使用Url.ContentUri時必須向uris添加'/ Content /'?
<link rel="stylesheet" type="text/css" href="<%= Url.Content("~/Content/StyleSheets/screen.css") %>" media="screen" />
因爲MVC項目默認具有「Content」文件夾,所以該名稱應該更通用一些。 – jgauffin 2010-10-18 08:17:39