tengo:
placeHolder y un Submit button
Evento onLoad
texto = New HtmlControls.HtmlInputText
texto.ID = "txt"
Me.PlaceHolder1.Controls.Add(texto)
Luego en el envento Submit1_ServerClick
Dim txt As System.Web.UI.HtmlControls.HtmlInputText
txt = CType(Me.PlaceHolder1.FindControl("txt"),
System.Web.UI.HtmlControls.HtmlInputText)
If Not IsNothing(txt) Then
Dim valor As String = txt.Value
End If
Problema:
NO PUEDO RECUPERAR EL CONTROL (sus valores)!!!!!!!!!!!!!
la linea
Me.PlaceHolder1.FindControl("txt") siempre en nothing?????
Como hago para recuperar el control agregado en forma dinamica??
Desde ya muchas gracias
Sds
Leer las respuestas