HtmlEncode in <asp:image>

  • Thread starter Thread starter MRW
  • Start date Start date
M

MRW

Hello!

I'm taking a file name from a database and using the <asp:image> tag in
GridView to show the image. However, some of the file names have
spaces in it and no matter what I do, for example:

<asp:Image runat=server ImageUrl=<%#
HttpUtility.HtmlDecode((Eval("WallpaperLink"))) %> />

It still displays the file as: bobs%20image. %20 keeps popping up.
Does anybody have any solutions? Oh yes, I've also tried
URLDecode/Encode

Thanks for the help!
 
I answered this in some other newsgroup where you also posted it. Use
crossposting instead of posting separate copies.
 
My apologies... when I originally posted my question, I did not see it
posted. Thinking an error occured, I tried again. I now see that it
DID post correctly....
 
Back
Top