PDA

View Full Version : [CLOSED] Image : Dynamically add Image not displayed



matrixwebtech
Jan 11, 2015, 8:22 AM
Hi,
I take some idea from http://forums.ext.net/showthread.php?16009-CLOSED-Dynamically-added-Ext-Net-Image-not-converting&p=67795&viewfull=1#post67795 and try bellow code.


<ext:Viewport runat="server" ID="vp1" Layout="BorderLayout">
<Items>
</Items>
</ext:Viewport>


vp1.Items.Clear();
Ext.Net.Image image = new Ext.Net.Image { ImageUrl = Server.MapPath("/f1/f2/f3/f4/Image/samplereort.png") };
vp1.Items.Add(image);
image.Render();

But image not displayed ,if assign an image url direct from internet then image displayed .

Daniil
Jan 12, 2015, 6:25 AM
Hi @matrixwebtech,

What is a resulting ImageUrl of this?

ImageUrl = Server.MapPath("/f1/f2/f3/f4/Image/samplereort.png")


if assign an image url direct from internet then image displayed
What is the URL?

The idea is to compare the URLs. Probably, there is a difference.