开发者

Image as hyperlink in a GridView

开发者 https://www.devze.com 2023-01-28 16:39 出处:网络
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 n

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

精彩评论

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