Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / March 2008

Tip: Looking for answers? Try searching our database.

Aggravating Noob Question - Images won't display

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Arch Stanton - 06 Mar 2008 17:41 GMT
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?
Mufaka - 06 Mar 2008 19:21 GMT
> I'm an absolute newbie trying to teach myself asp.net from a dummies
> book and the web. Sorry in advance.
[quoted text clipped - 16 lines]
>
> 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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.