Author: axeliux1 | Posted on: 2/13/2010 11:04:27 PM | Views : 249

Hi, I've been in trouble trying to load images stored on my DataBase. I have made it work but just with one image.
this is the problem.
I have  a form with 3 Image Controls, and i want to retreive a image for them from the DataBase.


This is what I am doing so far:
in the form where I want to show the images I have this very simple:
public partial class test_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string id = Request.QueryString["id"];
        if (id == null) return;
        this.Image1.ImageUrl = "retrieveImage.aspx?img=1&id=" + id;
        this.Image2.ImageUrl = "retrieveImage.aspx?img=2&id=" + id;
    }
}
...

Go to the complete details ...