Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Image To Page
Message
From
17/02/2010 18:16:32
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
17/02/2010 18:00:55
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01449621
Message ID:
01449632
Views:
24
>>>>>I dropped an Image from the Standard toolbox onto my page. I clicked the ImageURL in the prop sheet and selected the image. It shows in design but not when I run it.
>>>>>
>>>>>What am I doing wrong?
>>>>
>>>>It will be most likely a pathing issue. You may need to put "~/Images/myImage.jpg" before the path to the image. Where is your image and what does the path look like?
>>>>Tim
>>>
>>>I just re-read your post and wondering why it wouldn't have been right by the way you selected it. Where are your images?
>>
>>In the App_Data folder
>
>App_Data is a special folder although it should work. Is anything showing on the page at all where the image goes? Is there some other controls that might be constraining the space at runtime? Is there css applied to anything that would alter its layout?
>
>I would look at it with you if you want via GoToMeeting.
>Tim

I just tried this and the path was put in as ImageUrl= "Images/myImage.jpg". This gave me an error indicating the image was not found. I changed it to "/Images/myImage.jpg" and it worked fine. Why that would work that way is weird.
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform