开发者

How can I fix my ASP.NET Razor markup?

Example markup:

<a target = "_开发者_运维百科blank" href="/PDFFiles/@(item.PdfFileName).pdf#page=@item.PdfPageNo)">XXX</a>

How can I remove the final parenthesis after .PdfPageNo?


You should put open paranthesis before @item.PdfPageNo. Final would look like

<a target = "_blank" href="/PDFFiles/@(item.PdfFileName).pdf#page=@(item.PdfPageNo)">XXX</a>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜