网格视图中的数据绑定项 [英] Databound item in gridview
本文介绍了网格视图中的数据绑定项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使gridview的数据绑定项成为可单击的链接,以便当用户单击该数据绑定项时,将显示该用户项的所有详细信息.
但我想要,如何使数据绑定项目成为可单击的链接.
How can i make databound item of gridview a clickable link, so that when user clicks on that databound item, all details of that user item will be displayed.
but i want, how can i make databound item a clickable link.
推荐答案
<asp:templatefied xmlns:asp="#unknown">
<itemtemplate>
<asp:linkbutton id="lnkRedirect" runat="server" postbackurl="your url" />
</itemtemplate>
</asp:templatefied>
you can also take <asp:hyperlink xmlns:asp="#unknown"> by setting the property NevegateUrl you can move to your details page, or u can display model popup to display details on click of your link button</asp:hyperlink>
这篇关于网格视图中的数据绑定项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文