如何合并超链接和纯文本gridview [英] How to merge hyperlink and plain text gridview
本文介绍了如何合并超链接和纯文本gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试制作一个gridview列,其中包含超链接和文本。
单元格可能如下所示:
Hi,
I am trying to make a gridview column which will consist of hyperlink and text both.
A cell may look like this:
"Some Text" : <a href="http://www.codeproject.com">Link</a>
链接和文本保存在SQL中。
我无法将它们合并为一列。
非常感谢您的帮助!!
谢谢
Mitra
The link and the text is saved in SQL.
I am not able to merge them in a single column.
Your help is much appreciated!!
Thanks
Mitra
推荐答案
<itemtemplate>
<![CDATA[<%# Eval("Name") %>: <a href="<%# Eval("Link") %>"><![CDATA[<%# Eval("Text") %></a>
</itemtemplate>
这篇关于如何合并超链接和纯文本gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文