Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi...
i am used image tool to display an image...
but i can see it at design side...
but i can't see it at run time...
i am using visual studio 2008...
this is my code:
  <asp:Image ID="Image1" runat="server" Height="204px" ImageUrl="~/App_Data/Image/software.jpg" Width="390px" /> 
Posted
Updated 20-Oct-11 19:34pm
v3
Comments
Al Moje 21-Oct-11 1:21am    
Hi,
Check that software.jpg image file is in your sub target directory App_Data/Image. You must see it at run time if such image file is existing, otherwise there should be something wrong in your coding...

Put image any other folder becoz App_Data is ASP.Net Folder.
 
Share this answer
 
Hi,
create one folder in ur app as Image and put all your image files into this image folder.
ASP.NET
<asp:image id="Image1" runat="server" height="204px" imageurl="Image/software.jpg" width="390px" xmlns:asp="#unknown" />
 
Share this answer
 
v2

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