•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 456,594 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,499 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 8568 | Replies: 1
![]() |
Ok a few things. What web browser are you using to view it in? Is the browser set to accept inline images? Is the image file name exactly as you have coded it (i.e. Not Logo.jpg, or LOGO.jpg, or logo.JPG)?? Try placing the Image in the same directory as your application, and change the code to Image1.ImageUrl = "logo.jpg" and see if that works.
Try looking at this LINK
Hope this helps!
Try looking at this LINK
Sub Switch_Image (Src As Object, Args As EventArgs) If MyImage.ImageURL = "aspnet2.gif" Then MyImage.ImageURL = "xhtml.gif" Else MyImage.ImageURL = "aspnet2.gif" End If End Sub <asp:Button Text="Switch Image" OnClick="Switch_Image" Runat="Server"/> <asp:Image id="MyImage" Runat="Server" ImageURL="aspnet2.gif" ImageAlign="Top"/>
Hope this helps!

•
•
•
•
Originally Posted by snufse
I have a web page that will display an image (ie a logo).
I am using the following code but the image is not being displayed in the image control.
Image1.ImageUrl = "C:\logo.jpg".
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
![]() |
•
•
•
•
•
•
•
•
DaniWeb ASP.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
advertising ajax asp blog browser browsing community data design development devices dom domains feed firefox google html india intel internet legal linux marketing microsoft mobile applications mozilla multimedia news office php privacy reader report research search security software sql sun video w3c weather web web development wiki xml xoap yahoo youtube
- Putting an exe in a web page (VB.NET)
- using image for background on index page? (Site Layout and Usability)
- Print a web page in ASP.net (ASP.NET)
- Downloading web page source. (C)
- IE Web Page Active X Security Updates - Explained (Web Browsers)
- unable to load windows update web page (Viruses, Spyware and other Nasties)
- No page header and footer when printing a web page (JavaScript / DHTML / AJAX)
Other Threads in the ASP.NET Forum
- Previous Thread: DataGrid: Edit mode, the index of a dropdownlist does not start at the right Value
- Next Thread: ASP.NET project


Linear Mode