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>
精彩评论