If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The only way i know how to put images into a panel are in the HTML markup, where I need to specify each tag explicitly.

In the example below, i'd like to replace height="60px" with something like height="varHeight"but nothing I try seems to work. Is it as simple as a syntax issue, or am I trying to do something that can't be done inside of an <img> tag?

Or better yet, is there a way to bypass that whole process by loading them from JavaScript?

How and where would I invoke this in order to load the images into the panel?

Although the panel is created at design time, the images will be loaded at run-time in a context-sensitive manner, and will vary not only by the images selected but also by the quantity of images that will need to be placed on the form.

For example, one rendering of the page might show 3 child images on the panel, but a different rendering of the same page might need to show as many as 30 completely different images (hence the choice of the panel control, which allows for a scroll bar).

I can't disclose the actual business nature of this application, but a parallel analogy might be a recipe program that shows an image of each ingredient. For pizza, we'd see a picture of dough, a picture of cheese, and a picture of tomato sauce. For a BLT, we'd see images of bread, lettuce, bacon and tomato. To make matters more complex, a mouseclick on the bacon picture would have to do something very "bacon-specific."

If I always knew the images to be shown, I would simply specify them in the <body> like this -

But since I never know which images will need to be loaded, I can't hard-code them in like this and have to invoke them somehow.

Is this something I would invoke in the (VB) code-behind? If so, I'm not sure what syntax to use for such a feat. Or is it something I could somehow invoke from the page markup in the body section of the page?

The Panel I'm referring to is an instance of the System.Web.UI.WebControls.Panel class, and it lives in my web form (<form id="form1" runat="server">) in the body section of the HTML markup.

If I understand you correctly (yes, I know it makes me look dumb to ask, but I seem to have a propensity for wrong assumptions) the lines you sent me (below) should go inside of some sort of a "populateImages" function that's entirely in the <script> section? If so, would I pass in the reference to my panel object with a getElementById function?

When you click on the image it will add 3 new images to panelParent.
The images it adds have an onclick too, that when clicked on call a function named 'callthisfunctiononclick()'. You can change this to whatever function you like.