在解析图像之前到达文件结尾

时间:2014-01-13 14:37:34

标签: c# html asp.net html5 asp.net-mvc-3

谁能告诉我为什么......
<img src="@Url.Action("Index", "ReturnImage", @Model.GUID) alt="Doorstep signature" style="width:290px;height:290px;"/>

标记了初始

的错误
'<'

    End of file was reached before the 'img' tag could be parsed. Elements inside markup blocks must be complete. 
    They must either be self-closing("<br />") or have matching end tags ("<p>Hello</p>". 
    If you intended to display a "<" character, use the "&lt;" HTML entity.

1 个答案:

答案 0 :(得分:1)

问题是运行时无法处理冲突的引号。对于src,它看到"@Url.Action("

将此更改为:

<img src='@Url.Action("Index", "ReturnImage", @Model.GUID)' alt="Doorstep signature" style="width:290px;height:290px;"/>