I'm trying to get the value of dynamically created textbox.
Dim idReponse As String
idReponse = GlobalVariableAddOneWeight.ArrayReponseId(i)
Dim textboxId As String
textboxId = "txtWeight" + idReponse
Dim tb As New TextBox()
tb = Me.Div2.FindControl(textboxId)
Dim Poids As Integer = CInt(tb.Text)
I already tried the same code in another page and its working but in this one i'm having this error:
object reference not set to an instance of an object