| | |
Use of Image control on Web Page
Please support our ASP.NET advertiser: Intel Parallel Studio Home
![]() |
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".
![]() |
Similar Threads
- get HttpContext from Forms Control in web page (C#)
- populating image (ASP.NET)
- how to pass values to a control in web page? (ASP.NET)
- Add image to a web page (ASP.NET)
- web python control transfer from one page to another (Python)
- Image in table to web page (Java)
- Print a web page in ASP.net (ASP.NET)
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: Help with Databinding
| Thread Tools | Search this Thread |
.net activexcontrol advice ajax alltypeofvideos appliances asp asp.net bc30451 beginner bottomasp.net box browser button c# cac checkbox click commonfunctions control css dataaccesslayer database datagridview datagridviewcheckbox datalist deadlock deployment development dgv dialog dropdownlist dynamic dynamically edit embeddingactivexcontrol expose fileuploader fill findcontrol flash formatdecimal formview gridview gudi iframe iis javascript listbox login microsoft mono mouse mssql multistepregistration news novell numerical objects opera panelmasterpagebuttoncontrols radio redirect registration relationaldatabases reportemail rotatepage save schoolproject search security sessionvariables silverlight smartcard smoobjects software sql-server sqlserver2005 ssl suse textbox tracking treeview unauthorized validatedate validation vb.net video videos virtualdirectory vista visualstudio web webapplications webdevelopemnt webdevelopment webprogramming webservice xsl youareanotmemberofthedebuggerusers





