This method concatenating your text boxes together should work. However, there is 1 minor flaw with "FindControl", it only finds controls that are a direct child of the page/control being searched. If you know that the control exists within the page/control and its not being found when you do your search it is more than likely a grandchild of the page/control that you are calling "FindControl" on. In this instance you need a recursive search to traverse all children and grandchildren controls until it is found or null if not found.
Code:
public Control FindControlRecursive( Control root, String controlId )
{
Control rVal = null;
if( root.ID == controlId )
rVal = root;
else
{
// perform recursive depth first search until control found
foreach( Control c in root.Controls )
{
rVal = FindControlRecursive( c, controlId )
if( rVal != null )
break; // found control stop looking
}
}
return rVal; // we return the control or null if not found
}
public Control FindControlRecursive( Page root, String controlId )
{
Control rVal = null;
// perform recursive depth first search until control found
foreach( Control c in root.Controls )
{
rVal = FindControlRecursive( c, controlId )
if( rVal != null )
break; // found control stop looking
}
}