Posted on: 11/6/2012 12:06:54 AM | Views : 243

I am not sure what I am doing wrong but I have a set of dyanmicly created controls but I can not seem to access the text typed into them. I know the controls are being recreated on post back with no issues.
 
TextBox tbAttributeNameHolder = new TextBox(); TextBox tbAttributeValueHolder = new TextBox(); for (int i = 1; i <= ControlCount; i++) { tbAttributeNameHolder.ID = "tbAttributeName" + (i - 1); tbAttributeValueHolder.ID = "tbAttributeValue" + (i - 1); lblErrorMSG.Text += "<br />Name: " + tbAttributeNameHolder.Text + " Value: " + tbAttributeValueHolder.Text; }
...

Go to the complete details ...