aupa Jose_minglein2
probé eso y no me aparece naa,te comento como lo tengo para ver si tengo fallos (seguro que tengo):
Private Sub Page_Load(sender As Object, e As System.EventArgs)
Dim tableStyle As New TableItemStyle()
tableStyle.HorizontalAlign = HorizontalAlign.Center
tableStyle.VerticalAlign = VerticalAlign.Middle
tableStyle.Width = Unit.Pixel(100)
' Create more rows for the table.
Dim tempRow As New Tablerow()
Dim tempCell As New TableCell()
tempCell.Text = "si"
tempCell.Style.Add("backcolor","#006600")
tempCell.Attributes.Add("onclick","javascript
:docu ment.href='inicio.aspx'")
tempRow.Cells.Add(tempCell)
Table1.Rows.Add(tempRow)
Table1.Rows.Add(tempRow)
' Create a header for the table.
Dim header As New TableHeaderCell()
header.RowSpan = 1
header.ColumnSpan = 3
header.Text = "MEs de Enero"
header.Font.Bold = true
'header.BackColor = Color.CornflowerBlue
header.HorizontalAlign = HorizontalAlign.Center
header.VerticalAlign = VerticalAlign.Middle
' Add the header to a new row.
Dim headerRow As New TableRow()
headerRow.Cells.Add(header)
' Add the header row to the table.
Table1.Rows.AddAt(0, headerRow)
End Sub
<html>
<head>
</head>
<body>
<form runat="server">
<!-- Insert content here -->
<h1>TableCell Example
</h1>
<asp:table id="Table1" runat="server" border="1" CellPadding="3" CellSpacing="3">
<asp:TableRow></asp:TableRow>
<asp:TableRow>
<asp:TableCell Text="8:00"></asp:TableCell>
</asp:TableRow>
<asp:TableRow>
<asp:TableCell Text="8:30"></asp:TableCell>
</asp:TableRow>
</asp:table>
</form>
</body>
</html>
Es un ejercicio de pruebas...