Pete Davies
Pete Davies

Reputation: 1031

How can I fix my ASP.NET Razor markup?

Example markup:

<a target = "_blank" href="/PDFFiles/@(item.PdfFileName).pdf#[email protected])">XXX</a>

How can I remove the final parenthesis after .PdfPageNo?

Upvotes: 0

Views: 645

Answers (1)

archil
archil

Reputation: 39501

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>

Upvotes: 2

Related Questions