如何将超链接添加到其中具有不同URL的gridview列 [英] How to add Hyperlink to gridview column which has different urls in it

查看:92
本文介绍了如何将超链接添加到其中具有不同URL的gridview列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好;

我有问题.我在互联网上搜索,但无法解决.实际上我有一个绑定到数据库表的gridview.一栏包含不同的URL.我想以这种方式在此列上添加超链接,以便在单击链接时可以导航到相应的URL.请在这件事上帮助我.在此先感谢

穆罕默德·朱奈德·法罕
Software Developer

Hello all;

I am having a problem. I searched on internet but could not solve. Actually i am having a gridview which is bound to database table. There is one column which contains different URLs in it. I want to add hyperlink on this column in such a way that when a link is clicked, it navigate to corresponding URL. Kindly help me in this matter. Thanks in advance

Muhammad Junaid Farhan
Software Developer

推荐答案

hi.

在gridview上使用edit template.
然后选择Header Template并从那里开始.您可以添加超链接.


希望对您有帮助.
祝你好运. :)


-chaosgray-
hi.

use the edit template on your gridview.
then selectHeader Template and from there. you can add a hyperlink.


hope it helps.
goodluck. :)


-chaosgray-


这篇关于如何将超链接添加到其中具有不同URL的gridview列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆