A
Alhambra Eidos Kiquenet
Hi misters,
How I generate <tbody> tag using Table, TableRow, etc ... controls ?
I have this method:
private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
lnkDescendente, Image imgAZ, Image imgZA)
{
Table table = new Table();
TableRow row1 = new TableRow();
TableCell col1 = new TableCell();
TableCell col2 = new TableCell();
col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
col1.Controls.Add(imgAZ);
col2.Controls.Add(lnkAscendente);
row1.Cells.Add(col1);
row1.Cells.Add(col2);
TableRow row2 = new TableRow();
TableCell col21 = new TableCell();
TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Width,
"6px");
col21.Controls.Add(imgZA);
col22.Controls.Add(lnkDescendente);
row2.Cells.Add(col21);
row2.Cells.Add(col22);
table.Rows.Add(row1);
table.Rows.Add(row2);
return table;
Thanks in advance.
How I generate <tbody> tag using Table, TableRow, etc ... controls ?
I have this method:
private Table GenerarTablaOrdenacion(LinkButton lnkAscendente, LinkButton
lnkDescendente, Image imgAZ, Image imgZA)
{
Table table = new Table();
TableRow row1 = new TableRow();
TableCell col1 = new TableCell();
TableCell col2 = new TableCell();
col1.Style.Add(HtmlTextWriterStyle.Width, "6px");
col1.Controls.Add(imgAZ);
col2.Controls.Add(lnkAscendente);
row1.Cells.Add(col1);
row1.Cells.Add(col2);
TableRow row2 = new TableRow();
TableCell col21 = new TableCell();
TableCell col22 = new TableCell();col21.Style.Add(HtmlTextWriterStyle.Width,
"6px");
col21.Controls.Add(imgZA);
col22.Controls.Add(lnkDescendente);
row2.Cells.Add(col21);
row2.Cells.Add(col22);
table.Rows.Add(row1);
table.Rows.Add(row2);
return table;
Thanks in advance.