Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear Friend

I have some problem when implementing program.The problem is when i upload images in .aspx page
then i understand you have used other different control just like repeater,gridview,listview,dataview in that control you can implemented by using image tag.

I have knowledge about this control but i want to implemented in my program in another way i want to retrieve image in
    and
  • tag but in multiple times.so how to retrieve image in image tag without using datasource and databind control.


    how to retrieve image from folder by dyanamically means aspx.cs .

    Please give me information as soon as possible .

    Thanks in advanced !!
Posted
Updated 30-Jul-20 1:19am
v2
Comments
venkateshCST 14-Aug-13 3:53am    
Do you want image in aspx page or aspx.cs page...
Member 8089110 14-Aug-13 4:28am    
on aspx page..
pradiprenushe 14-Aug-13 4:42am    
not clear

This is how you will do:

C#
<asp:image imagesrc="give the image path" xmlns:asp="#unknown" />
 
Share this answer
 
Comments
[no name] 14-Aug-13 7:18am    
+5 from me.
Hello sir,

If u want this on your image tag from folder in your .aspx page...

Just use two folder, one for temp another for permanent.On .aspx page take image from file uploader and give it to temp folder and and show image on .aspx page by creating dynamic path for image from temp folder.....on submit button finally give it to permanent image folder......

Hope it willm helps you because it working well for me from last 1 year.....
 
Share this answer
 
in aspx page you can use like this -

<asp:Image ID="Image1" Width="50" Height="50" ImageUrl="~/Images/doc.png" runat="server" />


you can use below line in .cs page as -

<pre>Image1.ImageUrl = "~/Images/test.png";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900