Image's ID

Discussion in 'ASP .Net' started by Mike, Jul 17, 2004.

  1. Mike

    Mike Guest

    Hi,

    I set the ID of an Image in code behind (see below), but I cannot see it in the HTML page. Any idea why? Is there a workaround?

    System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
    img.ID = Convert.ToString(i.UniqueID);
    ........
    cell.Controls.Add(img);

    Thanks.
    Mike
    Mike, Jul 17, 2004
    #1
    1. Advertising

  2. Mike

    Mike Guest

    Sorry, bug in my code. Forget it!



    "Mike" <> wrote in message news:#...

    Hi,

    I set the ID of an Image in code behind (see below), but I cannot see it in the HTML page. Any idea why? Is there a workaround?

    System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
    img.ID = Convert.ToString(i.UniqueID);
    ........
    cell.Controls.Add(img);

    Thanks.
    Mike
    Mike, Jul 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jerry J
    Replies:
    0
    Views:
    537
    Jerry J
    Jul 18, 2003
  2. Mike John
    Replies:
    0
    Views:
    498
    Mike John
    Jul 28, 2003
  3. Gary B

    Image can't hold an image?

    Gary B, Jul 31, 2003, in forum: ASP .Net
    Replies:
    3
    Views:
    334
    Steve C. Orr, MCSD
    Aug 1, 2003
  4. Jim Hammond
    Replies:
    1
    Views:
    480
    Oliver
    Nov 13, 2003
  5. Laszlo Zsolt Nagy
    Replies:
    1
    Views:
    1,253
    Kartic
    Jan 26, 2005
Loading...

Share This Page