I want to enable choosing which image to display after a button click.
Could you please give me an example?
Thanks
This is what I have so far :
protected void Button10_Click(object sender, EventArgs e)
{
Image1.ImageUrl = @"C:\img\Desert.jpg";
Image1.ImageAlign = ImageAlign.Left;
}
It won't display anything after I run it.
The images that I want to display are saved on my local disk C, so ImageUri probably doesn't work because of that.
Does anyone have an idea how to display an image in this situation?
Thanks*