asp.net - GridView ImageField With Text -
I have ASP.Net GridView and I want to include an image and a text in the same field, something like this:
& lt; An id = "lnkForJQueryCall" & gt; & Lt; Img src = "whatever.png" & gt; Some other numbers include & lt; / A & gt;
I have found ASP: there is no property to add a text to the right or left side of the image in the image field, and there are no more options, is there any other way?
[edit] I was thinking about a CSS class solution but did not know how to do it !!
You can use GridView
to display custom code such as data-bound control .
& lt; Asp: TemplateField & gt; & Lt; ItemTemplate & gt; & Lt; An id = "lnkForJQueryCall" & gt; & Lt; IMG src = "whatever" & gt; Some other numbers include & lt; / A & gt; & Lt; / ItemTemplate & gt; & Lt; / ASP: TemplateField & gt;
Comments
Post a Comment