日期:2014-05-17 浏览次数:20478 次
<asp:HyperLink ID="HyperLink1" NavigateUrl='~/Manager/Attachment.aspx?Attachment=<%#Eval("Attachment")%>' runat="server"><%#Eval("FileName")%></asp:HyperLink>
<asp:HyperLink ID="HyperLink1" NavigateUrl='<%# Eval("Attachment","~/Manager/Attachment.aspx?Attachment={0}") %>' runat="server"><%#Eval("FileName")%></asp:HyperLink>
------解决方案--------------------
或者这样
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/Manager/Attachment.aspx?Attachment=" + Eval("Attachment")%>'<%#Eval("FileName")%></asp:HyperLink>
------解决方案--------------------
就一个连接,用啥HyperLink哈,直接
<a href="/Manager/Attachment.aspx?Attachment=<%#Eval("Attachment")%>"><%#Eval("FileName")%></a>
------解决方案--------------------
NavigateUrl='<%# string.format("~/Manager/Attachment.aspx?Attachment={0}",Eval("Attachment").tostring())%>'