gridView和超链接 [英] gridView and Hyperlinks
本文介绍了gridView和超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
我有一个带有超链接的gridview,当鼠标悬停在链接上并单击该链接时,它应该转到目标页面.有什么想法可以生成目标链接吗?
Hi guys
I have a gridview with hyperlinks, when a mouse hovers over the link and clicks the link, it is supposed to go to the target page. Any ideas how I can generate the target links?
推荐答案
您可以在gridview的RowDataBound事件中将目标链接分配给这些超链接.
You can assign the target links to these hyperlinks in RowDataBound event of gridview.
您可以使用<%# Eval
形成目标链接 还是Brij建议的其他方式.
You can form the target links using<%# Eval
Or otherwise as Brij Suggested.
这篇关于gridView和超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文