1
這是我的html代碼:描述:在編譯爲請求提供服務所需的資源編譯期間發生錯誤。編譯器錯誤信息:CS1513:}預期
<span>
<%if (Model.Data.Service.Attachments.Count > 0)
{
%><h3>Downloads for your service:</h3> <%
foreach (var attach in Model.Data.Service.Attachments)
{
%><%=attach.Name%>: https://<%= Request.Url.Host%> "/File/Download/" <%= attach.Id.ToString()%><br />
}<%
}%></span>
錯誤是說我缺少一個「{」,但我不認爲這是什麼回事
,這裏不是問題。他有語法錯誤。 – 2012-02-29 15:45:32
已更新爲包含解決方案。 – 2012-02-29 15:47:59
您的string.Format片段仍然存在錯誤。 – 2012-02-29 15:49:02