我從MVC1有以下HTML。MVC 3 - img alt HTML標記?
<img alt="<%= Html.Encode(item.Name) %>" src='<%= this.Url.Action("Image",
"Products") + "/" + item.ID.ToString()%>' width="64" height="64" />
我怎麼會用這個MVC 3,我已經試過它不工作如下...提前
<img alt=" @Html.Encode(item.Name)" src='<@this.Url.Action(("Image",
"Products")) + "/" + Picture1.SubProductCategoryID.ToString()>'
width="64" height="64" />
感謝
我認爲你的意思是剃刀,而不是MVC 3. – smartcaveman 2011-03-15 14:34:07