Crear TextBox Din´ñamicamente desde ASP NET (VB)
Hola. No se me crea el textbox dinámicamente ¿por qué?
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim txt As New TextBox()
txt.ID = "txtNombre"
txt.Text = "MDW"
Dim pnl = New Panel()
pnl.ID = "Panel"
pnl.Controls.Add(txt)
End Sub
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim txt As New TextBox()
txt.ID = "txtNombre"
txt.Text = "MDW"
Dim pnl = New Panel()
pnl.ID = "Panel"
pnl.Controls.Add(txt)
End Sub
Respuesta de butulia
1