我想匿名执行以下功能。我该怎么做-
TableRow tr = new TableRow();
TableCell tc = new TableCell();
Label lbl = new Label();
lbl.Text = link;
tc.Controls.Add(lbl);
tr.Cells.Add(tc);
tblMain.Rows.Add(tr);
更新
就像我们一样——
tblMain.Rows.Add(new TableRow(/* Here I will add a TableCell */))