在这里,我正在尝试使用下载链接,但我不知道应该写些什么,而不是: [英] here i'm trying to use a download link but i don't know what should i write instead of the:
本文介绍了在这里,我正在尝试使用下载链接,但我不知道应该写些什么,而不是:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" onrowcommand="GridView1_RowCommand"> <Columns> <asp:TemplateField> <ItemTemplate> <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("url") %>' CommandName="cmd">Download</asp:LinkButton> </ItemTemplate> </asp:TemplateField> </Columns> </asp:GridView> <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
onrowcommand="GridView1_RowCommand">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="LinkButton1" runat="server"
CommandArgument='<%# Eval("url") %>' CommandName="cmd"><strong class="highlight">Download</strong></asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
推荐答案
您的下载链接(LinkButton)可以重写为:
Your download link (LinkButton) can be rewritten as:
<a href="http://www.aaa.com/downloadable.zip" target="_blank">Download</a>
这篇关于在这里,我正在尝试使用下载链接,但我不知道应该写些什么,而不是:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文