G
Guest
i am trying to add image to table cell. Here is my code..
System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
img.ImageUrl="http://localhost/Lhw/Images/i.p.new.gif";
for(int i=0; i < allRecords.Length; i++)
{
TableRow tRow = new TableRow();
Table2.Rows.Add(tRow);
TableCell tCell1= new TableCell();
tCell1.Controls.Add(img);
tRow.Cells.Add(tCell1);
}
The image doesnot appear when the page is run. Is there anything wrong.
Manny
System.Web.UI.WebControls.Image img = new System.Web.UI.WebControls.Image();
img.ImageUrl="http://localhost/Lhw/Images/i.p.new.gif";
for(int i=0; i < allRecords.Length; i++)
{
TableRow tRow = new TableRow();
Table2.Rows.Add(tRow);
TableCell tCell1= new TableCell();
tCell1.Controls.Add(img);
tRow.Cells.Add(tCell1);
}
The image doesnot appear when the page is run. Is there anything wrong.
Manny