You can't do it like you would with a windows form. Images cannot be
embedded into a page, they can only be references through the <img> tag (or
asp:image control). The trick for dynamic images such as images stored in a
database is to create a second page that becomes the image generator.
Essentially, this is a page without any HTML in it and the only thing it
returns is the binary data that represents an image. You can pass
querystring parameters to it to determine which image to get (such as an
ID), then perform whataver action you need to get or to generate the image,
then use the dump the data to the output stream. Just make sure you have no
HTML or whitespace within the designer surface of the page.