I am trying to follow an MVC example and they used the following code
<%= string.Format("<link href='{0}'rel='stylesheet' type='text/css' />",
ResolveUrl("~/Content/Site.css")) %>
<%= string.Format("<link href='{0}'rel='stylesheet' type='text/css' />",
ResolveUrl("~/Content/jquery-ui-1.7.2.custom.css"))%>
I want to convert it to razor.
剃刀版
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.