How do I...?

Reload Image Objects at Runtime

To load an image into your image object at runtime, use the Image.Load action.

As an example, we will load the image example.jpg (from the Images directory of the project's distribution folder) into the image object "Image1":

Image.Load("Image1", "AutoPlay\\Images\\example.jpg");

Note: To load this image at runtime, put the above code into the On Show event of the page containing your image object.