开发者

Image as hyperlink in a GridView

The ASP.NET GridView control's default column types just don't seem to be up to using an image as a hyperlink. The HyperLinkField has no image att开发者_StackOverflowributes, and the ImageField has no navigation attributes. Is this possible without using a TemplateField?


You can try to use HyperLinkField.DataTextFormatString property with inserting the tag into this format string

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜