C# – displaying an image from a bitmap variable using codebehind

asp.netc++code-behindimage

I wish to create a very simple web app that simply displays an Image(s) from a database based upon either a date (from a calendar click event) or from a keyword search, getting the image(s) is no problem but I don't know how to display the resulting image. Preferably I would like to display the image in a table or grid or whatever, adjacent to the Calendar and TextBox on the same page that I used to get the search critera

So how to I stream an image to a page from a codebehind bitmap variable ?

Edit:
The database is a cloud database, so databinding is out.

Best Solution

Take a look at the DynamicImageHandler for ASP.NET up on the CodePlex ASP.NET Futures site:

http://www.hanselman.com/blog/ASPNETFuturesGeneratingDynamicImagesWithHttpHandlersGetsEasier.aspx

Related Question