Torna al Thread
//Riga intestazione
TableRow tempRow1 = new TableRow();
tempRow1.ID="trBooking" + cont.ToString();
Label lbBooking = new Label();
lbBooking.ID = "lbBookingCode" + cont.ToString();
lbBooking.Text = myReadDett["bookingcode"].ToString();
TableCell tempCellBook = new TableCell();
tempCellBook.ID="tdBooking" + cont.ToString();
tempCellBook.Controls.Add(lbBooking);
tempCellBook.Width = 152;
tempCellBook.CssClass ="titolo";
tempRow1.Cells.Add(tempCellBook);
tbPrenotazione.Rows.Add(tempRow1);
<asp:table id="tbPrenotazione" runat="server" CellPadding="3" CellSpacing="1" BorderWidth="0" Width="825" CssClass="sfondotabella"></asp:table>