kosj@hebeler.com
New member
- Joined
- Feb 24, 2009
- Messages
- 3
- Programming Experience
- Beginner
Trying to get some help on retrieving what the user enters into a dynamic text box. The following does not work but this is how everyone says will work.
I get a null reference error: Object reference not set to an instance of an object. Please help! This is driving me crazy! Thanks.
VB.NET:
For intcount = 0 To snqty - 1
Dim Txtdynamic As TextBox
Txtdynamic.ID = "txtdynamic_" & intcount & "_mycntrl"
Txtdynamic = Me.FindControl("txtdynamic_"
& intcount.ToString & "_mycntrl")
MsgBox(Txtdynamic.Text)
Next
Last edited by a moderator: