Aggravating Noob Question - Images won't display

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Arch Stanton

    Aggravating Noob Question - Images won't display

    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="CTLog o.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?
  • Mufaka

    #2
    Re: Aggravating Noob Question - Images won't display

    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="CTLog o.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.

    Comment

    Working...