This is a migrated thread and some comments may be shown as answers.

Image is not displaying

2 Answers 76 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 07 Jan 2012, 07:42 AM
Image is not displaying when the file name contains &. How do I handle this in imageUrl?

2 Answers, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 10 Jan 2012, 06:14 PM
Hi Paul,

Indeed the image will not load when it contains & sign. The issue is not related to the RadControls but to html. You could try declaring html img tag with src property set up and you will observe the same issue. Your solution is to remove every & sign in the image when saving it.

Greetings,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
James Campbell
Top achievements
Rank 1
answered on 21 Mar 2012, 03:16 AM
Hi Paul,

You can try using HttpServerUtility.HtmlDecode Method when passing the URL

  http://msdn.microsoft.com/en-us/library/hwzhtkke.aspx

Thanks,
Jim
If this helped answer your question, please mark this as answered, thank you.
Tags
BinaryImage
Asked by
Paul
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
James Campbell
Top achievements
Rank 1
Share this question
or