Image's ID

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

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
 
Sorry, bug in my code. Forget it!




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
 
Back
Top