急!动态生成Table问题
代码如下:
TableCell tc = new TableCell();
tc.Height = 24;
tc.Width = Unit.Percentage(100);
tc.Text = "Testing...";
Image img = new Image();
img.ImageUrl = "~/images/edit.gif";
tc.Controls.Add(img);
TableRow tr = new TableRow();
tr.Cells.Add(tc);
如果像上面那样写的话,运行的时候,表格中只显示Testing...文字,但图像显示不出来,如果不写
tc.Text = "Testing...";
这一段代码的话,图片才能显示出来,怎么让文本和图像一起显示,
急,!帮帮忙!·~