Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pictures will not show 2

Status
Not open for further replies.

AmandaDearheart

Programmer
Jun 24, 2007
13
US
I'm using Microsoft's Visual web developer 2005 Express to design a ASP webpage. The problem I'm having is that when I test run the application, the pictures will not show.

Its Microsoft latest RAD IDE for website development. I'm using the IDE to design the ASP webpage. It seems to be using the ASP HTML language. it is also AJAX enabled. Here is a sample of the code.



<asp:HyperLink ID="Hyperlink2: Microsoft: SNA / Host Integration Server Links" runat="server" NavigateUrl="~/delphi.aspx" Style="z-index: 100;
left: 36px; position: absolute; top: 363px" Target="_top" Height="1px" ImageUrl="~/App_Data/buttons/delphi.jpg" Width="1px">HyperLink

Prepare to be assimilated. Resistance is futile

Amanda Dearheart
 
asp and asp.net are totally different. Just to be clear when posting asp has it's own forum forum333.

this is asp.net which is what your code is above.
If you haven't closed the <asp:Hyperlink /> tag to must. is the image url correct?

also remove all the styling. Once you get the picture displaying then format the image.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Yhe code is written by the ide. I've made no changes to it!


Prepare to be assimilated. Resistance is futile

Amanda Dearheart
 
hi,

Right click on the X mark that appears for the unloaded image and see what property is set in its soruce...

Known is handfull, Unknown is worldfull
 
I've had problems using the tilde in the ImageURL property ("~"). Change this to the relative path and see if it works... i.e. "../../images/whatever.jpg"

Regards,

J
 
Thanks guys,

I'll try that when I get to my machine!

Prepare to be assimilated. Resistance is futile

Amanda Dearheart
 
@vbkris and jshurst,

No such luck guys,
I've tried both of your suggestions and neither one works.
vbkris, The entire path is shown in the source when I checked the directory.
jshurst, Not only doesn't the picture show up on the web page, it doesn't even show up in the IDE now.

But thanks for you help. It doesn't go unappreciated!


Prepare to be assimilated. Resistance is futile

Amanda Dearheart
 
Can you give the path to your page and then the path to the image (is it really in the App_Data directory?)?

Post those two things then post exactly what you have for the hyperlink.

Also, is this in a user control, or directly on the page?

J
 
>>vbkris, The entire path is shown in the source when I checked the directory

please copy that path, paste it into a different browser and check if the image loads.

and like J pointed out, kindly give us the path that you see...

Known is handfull, Unknown is worldfull
 
is there a way to upload screenshots to Tek-Tipd?
I need these to illustrate what I mean!


Prepare to be assimilated. Resistance is futile

Amanda Dearheart
 
no idea on how to upload images :(

do you have a link that we can access???

Known is handfull, Unknown is worldfull
 
This probably wont be the answer, but Ive just had a similar issue here. It turns out that the web name in iis is different to the project name that was being run in VSS Debug mode.

Although I am using the vss debug server, if I set the image to look at the Web project as configured in IIS it resolved the issue.

K
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top