通过按钮发送多个数据 [英] sending multiple data through button
本文介绍了通过按钮发送多个数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<asp:LinkButton ID="btnSelect" CommandName="Select" tag='<%#Eval("Name") %>' Text="Select" runat="server" OnClientClick="CloseWithArg(this);return false;" />
我想通过此按钮发送ID,我该如何发送.
I want to send id through this button how can i send .
推荐答案
检查此
Hi ,
Check this
<asp:GridView ID="GridView1" runat="server">
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:LinkButton ID="btnSelect1" CommandName="Select" CommandArgument='<%#Eval("Name") %>'
Text='<%#Eval("Name") %>' runat="server" OnClientClick="CloseWithArg(this);return false;"
onclick="btnSelect_Click" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
顺便说一句,它将无法解决数据绑定上下文的问题
最好的问候
米特瓦里(M.Mitwalli)
By the way it will not work out side the context of databound
Best Regards
M.Mitwalli
这篇关于通过按钮发送多个数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文