I have a list box of products a coffee machine has to
produce, that the user
can choose from. After they do their selection of
products, into a panel
control i dynamically create textboxes with id's text1,
text2 ....

i need to read in the values entered in the text boxes.

when i try to access the textboxes with the following code
from MSDN, it
tells me the "Object reference not set to an instance of
the object. "

dim lbl as label
lbl = ctype(panel1.findcontrol("text1"), Label)

'error on this line

lblSomething.text=lbl.text

I can see the text1 dynamic control on the page, but
cannot access its text
property, any help is appreciated thanks in advance...