PC Review


Reply
Thread Tools Rate Thread

Aggravating Noob Question - Images won't display

 
 
Arch Stanton
Guest
Posts: n/a
 
      6th Mar 2008
I'm an absolute newbie trying to teach myself asp.net from a dummies
book and the web. Sorry in advance.

I'm just trying to display images on my .aspx page. I've tried both of
these approaches:

<img src="CTLogo.gif" />


<asp:image runat="server"
id="CTLogo"
imageurl="CTLogo.gif"
alternatetext="No Image" />

Both of these are in the body of my page (between the BODY tags>, and
the image CTLogo.gif is in the same directory as the .aspx files. But I
keep getting the 'broken image' icon or the alternate test. The dummies
book and every web page I've tried say this should work. If I paste the
first one into a file with a .html format, it works fine.

Can anybody give me pointers on what to try?
 
Reply With Quote
 
 
 
 
Mufaka
Guest
Posts: n/a
 
      6th Mar 2008
Arch Stanton wrote:
> I'm an absolute newbie trying to teach myself asp.net from a dummies
> book and the web. Sorry in advance.
>
> I'm just trying to display images on my .aspx page. I've tried both of
> these approaches:
>
> <img src="CTLogo.gif" />
>
>
> <asp:image runat="server"
> id="CTLogo"
> imageurl="CTLogo.gif"
> alternatetext="No Image" />
>
> Both of these are in the body of my page (between the BODY tags>, and
> the image CTLogo.gif is in the same directory as the .aspx files. But I
> keep getting the 'broken image' icon or the alternate test. The dummies
> book and every web page I've tried say this should work. If I paste the
> first one into a file with a .html format, it works fine.
>
> Can anybody give me pointers on what to try?

Is your aspx page is defining a <base href="..." />? If so, the image
will try to be retrieved from that base location.

If not, then the image should be ok if it does actually exist in the
same directory and your name is correct.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Noob Question =?Utf-8?B?Ty4uLi4=?= Microsoft Excel Programming 7 2nd Oct 2007 11:24 PM
Noob Question Probably! :S =?Utf-8?B?TEhVSw==?= Microsoft Excel Programming 1 4th Aug 2007 02:14 AM
noob Question =?Utf-8?B?QmV2bzEy?= Microsoft Access Forms 1 3rd Apr 2006 05:04 AM
Display Properties - background images question Karl Windows XP General 4 24th May 2005 05:30 PM
OK, Noob question...but Maxwell Microsoft Access Reports 1 20th Apr 2005 12:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:55 AM.