image url in gridview, problem

J

Jeff

hey

asp.net 3.5

I have a gridview where I'm trying to display a image which the user can
click on and some action will be triggered:

The image here isn't displayed, instead a broken image is displayed and alt
text is displayed
<asp:HyperLinkField Text="<img border='0' runat='server'
src='../Images/ArrowR.gif' alt='test' />" DataNavigateUrlFields="Id" >
</asp:HyperLinkField>

But the markup below is displayed, the markup below is just a reference I
added to the page, it doesn't exist in any control... so the markup below is
just debug info.. it shows that my <image.. is correct, but somehow it won't
display when used in a HyperLinkField
<img border='0' runat="server" src="../Images/ArrowR.gif" alt='test' />

Any suggestions? is there a better approach? If there is a better approach,
then I'd love to hear about it

Jeff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,278
Latest member
BuzzDefenderpro

Latest Threads

Top