1 Replies - 666 Views - Last Post: 04 June 2012 - 11:33 AM Rate Topic: -----

#1 c#_fem  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 04-June 12

Web form display image

Posted 04 June 2012 - 11:26 AM

Please can anyone help

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

Is This A Good Question/Topic? 0
  • +

Replies To: Web form display image

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 5676
  • View blog
  • Posts: 22,537
  • Joined: 23-August 08

Re: Web form display image

Posted 04 June 2012 - 11:33 AM

Moved to ASP.NET
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1