从gridview控件导航到另一个页面? [英] navigate from gridview control to another page?
问题描述
亲爱的所有人,
gridview包含列:id,image,title,location
行:5
一次点击第一行标题(电脑)
此链接转到computer.aspx
2nd行标题(会计)
此链接转至accountant.aspx
第3行标题(笔记本电脑)
这个链接转到laptop.aspx
第4行标题(相机)
此链接转到camera.aspx
第5行标题(手机)
此链接转至mobile.aspx
此链接导航是否有可能
请回复我
可能:如何
请回复我任何逻辑或示例网站或网址路径
推荐此链接
HTTP://用于ums.asp.net/t/1765881.aspx?How+to+create+a+flipcart+like+panel+for+showing+products+in+gridview [ ^ ]
在Gridview中使用Hyperlinkfield
< asp:gridview id = OrdersGridView
datasourceid = OrdersSqlDataSource
autogeneratecolumns = false
runat = server < span class =code-keyword>>
< columns>
< asp:hyperlinkfield datatextfield = 计算机
datatextformatstring = {0:c}
datanavigateurlfields = ProductID
datanavigateurlformatstring = < span class =code-string>〜\ computer.aspx?
headertext = 价格
target = _ blank />
< asp:hyperlinkfield datatextfield = 会计
datatextformatstring = {0:c}
datanavigateurlfields = ProductID
datanavigateurlformatstring = 〜\Accountant.aspx?
headertext = 价格
target = _ blank />
< / 列 >
< / asp:gridview >
进一步参考
Gridview中的超链接
和
此
Dear All,
gridview contain columns: id, image, title,location
rows: 5
once click first row title(computer)
this link go to computer.aspx
2nd row title(Accountant)
this link go to accountant.aspx
3rd row title(laptop)
this link go to laptop.aspx
4th row title(camera)
this link go to camera.aspx
5th row title(mobile)
this link go to mobile.aspx
this link navigation is possible or not
please reply me
possible : how
please reply me any logic or examples sites or url paths
Refer This Link
http://forums.asp.net/t/1765881.aspx?How+to+create+a+flipcart+like+panel+for+showing+products+in+gridview[^]
use Hyperlinkfield in Gridview
<asp:gridview id="OrdersGridView" datasourceid="OrdersSqlDataSource" autogeneratecolumns="false" runat="server"> <columns> <asp:hyperlinkfield datatextfield="Computer" datatextformatstring="{0:c}" datanavigateurlfields="ProductID" datanavigateurlformatstring="~\computer.aspx?" headertext="Price" target="_blank" /> <asp:hyperlinkfield datatextfield="Accountant" datatextformatstring="{0:c}" datanavigateurlfields="ProductID" datanavigateurlformatstring="~\Accountant.aspx?" headertext="Price" target="_blank" /> </columns> </asp:gridview>
Further Reference
Hyperlinkfield in Gridview
and
this
这篇关于从gridview控件导航到另一个页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!