?
Solved

How do you place an image on a web page using Visual Studio 2005 Pro

Posted on 2006-06-02
4
Medium Priority
?
246 Views
Last Modified: 2010-05-18
I am a beginning programmer learning by fire.  I have just installed VS 2005 and am beginning my learning process.  I am creating a web page and want to place a picture on that web page.  I have dragged the image control to the design page but am unable to determine the property to point to the actual location of the image.  Any help is greatly appreciated.

Thanks
Ken
0
Comment
Question by:kwh3856
  • 3
4 Comments
 

Author Comment

by:kwh3856
ID: 16821759
Ok..I found the ImageUrl property and have copied the files into the correct directory but they do not show up when i drill down to the directory...Any ideas???

Thanks
Ken
0
 
LVL 5

Accepted Solution

by:
aaronfeng earned 2000 total points
ID: 16821847
Assuming you copied to the right place, it should be in the same directory of you Default.aspx.cs file.  Add the image to your solution by adding an existing item to the solution.  After that, try to browse it again using the ImageUrl property.

Cheers,

Aaron
http://aaronfeng.blogspot.com/
0
 

Author Comment

by:kwh3856
ID: 16821869
Thanks Aaron.

It was all about the right place and the exact file name. I did not realize I needed to put the .gif as the extension.  It is the little things that will kill you sometime:)

Thanks
Kenny
0
 

Author Comment

by:kwh3856
ID: 16821875
One more question, I now see the image in VS but when I run the appication it does not appear in the browser.  Any ideas?

Thanks
Kenny
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question