HtmlEncode in <asp:image>

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!
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

I answered this in some other newsgroup where you also posted it. Use
crossposting instead of posting separate copies.
 
M

MRW

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....
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top