Cita:  
					Iniciado por Malenko 
  Yo controles dinámicos no he tocado mucho pero diría que más que llamar a la propiedad "
Text" porque es el Texto del link: 
tendrías que usar el 
RenderControl para que te genere todo el código HTML (<a href=...)
     
Ya lo he echo, a ver si me puedes ayudar en esto. 
Hago lo siguiente pero ahora no me muestra el nombre del link al que tengo que clicar, es decir, el objCell3 no me pinta nada en la tabla    
Código vb.net:
Ver originalWith mysql_comando
                        reader = .ExecuteReader()
                        While reader.Read()
 
                            objRow = New TableRow()
                            Dim objCell1, objCell2, objCell3, objCell4 As New TableCell()
                            Dim linkDetalle As String
                            Dim link As HtmlTextWriter
 
                            numoperario = reader.GetValue(0)
                            nombre = reader.GetValue(1)
 
                            objCell1.Controls.Add(New LiteralControl(numoperario))
                            objCell1.HorizontalAlign = HorizontalAlign.Center
                            objCell2.Controls.Add(New LiteralControl(nombre))
                            objCell2.HorizontalAlign = HorizontalAlign.Left
 
                            Dim sw As StringWriter = New StringWriter
                            Dim ht As HtmlTextWriter = New HtmlTextWriter(sw)
 
                            ' Create the a.
                            ht.AddAttribute(HtmlTextWriterAttribute.Href, "~/HorasOperarios.aspx?numOperario=" & numoperario)
                            ht.RenderBeginTag(HtmlTextWriterTag.A)
 
                            ' End all the tags.
                            ht.RenderEndTag()
                            linkDetalle = sw.ToString()
                            [B]objCell3.Controls.Add(New LiteralControl(linkDetalle))[/B]
 
                            objRow.Cells.Add(objCell1)
                            objRow.Cells.Add(objCell2)
                            objRow.Cells.Add(objCell3)
                            Table2.Rows.Add(objRow)
                        End While
                        .Dispose()
                    End With