I'm trying to display an image in Visual Studio 2010 Web form.
I'm using a Image class.
This is my code and it doesn't display anything
protected void Button10_Click(object sender, EventArgs e)
{
Image1.ID = "Image1";
Image1.ImageUrl = @"C:\img\Koala.jpg";
}
Please can anyone help. I have to do ot like this because the image control should be dynamic - user should choose an image to display

New Topic/Question
Reply



MultiQuote




|