• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 784
  • Last Modified:

System.Web.UI.WebControls.TableCell

Hi Experts,

How do I insert contents into a System.Web.UI.WebControls.TableCell?

I understand we can set the TableCell.Text property, such as

System.Web.UI.WebControls.Table Table1 = new System.Web.UI.WebControls.Table();
System.Web.UI.WebControls.TableRow row = new System.Web.UI.WebControls.TableRow();
System.Web.UI.WebControls.TableCell cell = new System.Web.UI.WebControls.TableCell();

str = "<image id=\"Image1" src=\"images/img_1.gif\"></image>";
cell.Text = str;
row.Cells.Add(cell);
Table1.Rows.Add(row);

but can I add an object such as System.Web.UI.WebControls.Image?
0
simonm_jp
Asked:
simonm_jp
1 Solution
 
NetDeveloperCommented:
cell.Controls.Add(youImageWebControlObj)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now