we can get the dynamic controls change text by using this
foreach (Control ctr in dynamic.Controls)
{
if (ctr is TextBox)
{
string IDs = ((TextBox)ctr).ID;
string values = ((TextBox)ctr).Text;
string text= values;
ele = (new XElement(IDs, values));
}