int tdcount = 0; //get the count of table cells in tr tdcount = tr1.Controls.Count; //Create a new table cell HtmlTableCell tdcell = new HtmlTableCell(); //Create a new image control Image img = new Image(); //set the url for image img.ImageUrl = "C:\img.jpg"; img.Width = 120; //set the image width img.Height = 100; //set the image hight tdcell.ColSpan = 3; //set the colspan for table cell tdcell.RowSpan = 4; //set the rowspan for table cell tdcell.Controls.Add(img); // place image in table cell tr1.Controls.AddAt(tdcount, tdcell); // Add table cell to the table row.