我收到错误解析器错误消息:服务器标记格式不正确。在下面的代码行上:
<asp:HyperLink ID="imgFileType" ImageUrl="images/Icon_Pdf.gif" NavigateUrl='<%#"javascript:ViewFile('erg_", Eval("DocumentName") %>' runat="server"></asp:HyperLink>
我需要将 url 链接解析为:
javascript:ViewFile('erg_Invoice_3200_QRG_Restaurant.pdf');
我在语法中缺少什么?