Amigos, antes que nada decearlen un muy feliz año para todos los de esta lista, bueno tengo una duda estoy trabajando con asp.net 2.0, y estoy tratando de crear una tabla dinamicamente, ahora mi problema esta que necesito que en una celda de esta tabla agregarle un imagebutton, lo estoy tratando de hacer con un place holder,la tabla y la imagen se ve sin problemas pero no me queda en la celda que necesito, la imagen se ve donde esta físicamente el placeholder, como puedo hacer para que me quede en el lugar que quiero o habra alguna otra forma de hacerlo. Gracias les dejo el código.
For i = 0 To (n - 1) Dim tr1 As New TableRow() Dim tc1 As New TableCell() tc1.Text = dt.Rows(0).Item("Nombre_Asignatura") tc1.HorizontalAlign = HorizontalAlign.Left tc1.Width = 400 tc1.BorderWidth = 1 tc1.BorderStyle = BorderStyle.Solid tc1.BorderColor = Drawing.Color.Orange Dim tc1b As New TableCell() tc1b.Text = dt.Rows(i).Item("Nombre_Carrera") tc1b.HorizontalAlign = HorizontalAlign.Center tc1b.Width = 350 tc1b.BorderWidth = 1 tc1b.BorderStyle = BorderStyle.Solid tc1b.BorderColor = Drawing.Color.Orange Dim tc1d As New TableCell() tc1d.Text = dt.Rows(i).Item("Jornada_Plan") tc1d.HorizontalAlign = HorizontalAlign.Center tc1d.Width = 100 tc1d.BorderWidth = 1 tc1d.BorderStyle = BorderStyle.Solid tc1d.BorderColor = Drawing.Color.Orange 'AQUI ESTA LA IMAGEN Dim tc1f As New TableCell() Dim button As ImageButton = New ImageButton() button.ImageUrl = "~/Imagenes/modificar.png" PlaceHolder1.Controls.Add(button) 'tc1f.Text = "Eliminar" tc1f.HorizontalAlign = HorizontalAlign.Center tc1f.Width = 20 tc1f.BorderWidth = 1 tc1f.BorderStyle = BorderStyle.Solid tc1f.BorderColor = Drawing.Color.Orange tr1.Cells.Add(tc1) tr1.Cells.Add(tc1b) tr1.Cells.Add(tc1c) tr1.Cells.Add(tc1d) tr1.Cells.Add(tc1e) tr1.Cells.Add(tc1f) Table1.Rows.Add(tr1) Table1.Font.Size = 10 Table1.CellPadding = 4 Table1.CellSpacing = 0 Table1.BorderWidth = 1 Table1.BorderStyle = BorderStyle.Solid Table1.BorderColor = Drawing.Color.Orange Next