Groups | Blog | Home
all groups > asp.net > february 2006 >

asp.net : setting an image-hyperlink width manually???


Daves
2/25/2006 10:04:24 PM
my gridview should display a column with an image which also is
hyperlinked...
No problem with:
<asp:HyperLinkField
DataNavigateUrlFormatString="~/Groups/Default.aspx?group={0}"
DataNavigateUrlFields="GroupID" />

but how on earth can I set the image width???

I can also use the Gridview's OnRowDataBound event to manually add the
image/link but still I cannot figure out how to add an Image (with the width
correctly set) inside a HyperLink control? Or the other way around - add a
HyperLink to an Image control?

DWS
2/28/2006 7:51:28 AM
CSS or hard code length into HyperLink.
Good Luck
DWS


[quoted text, click to view]
AddThis Social Bookmark Button