Picture box control?

bonedoc

Well-known member
Joined
May 4, 2006
Messages
112
Programming Experience
Beginner
Ok, I am new to ASP...and I see no picturebox control. Strange...What do they use to display a pic? I tried the Image control. Is this correct? How do I display a picture that has a local string for its path?

Ah,,,my ASP book says nothing about images. Why would this work on some pics, and others not:

Image1.ImageURL " "StringLocation"
 
Last edited:
I must be missing something.do I put the pat of my image in the <>? For some reason I get "HTML is not defined".
 
There are two major choices, the HTML image and the asp:Image controls.
You can drag either from the toolbox to the editor and set the properties from the property explorer.
Here is sample markup for each:
HTML:
<!-- An HTML Image control -->
<img src="images/image1.jpg" alt=Image text" />
 
<!-- An ASP.NET Image control -->
<asp:Image id="Image1" runat="server" AlternateText="Image text" ImageUrl="images/image1.jpg"/>
 
Back
Top