Ciao a tutti,
sto sviluppando su Visual Studio 2008 un'applicazione web con c#.
Ho una pagina Aspx su cui è appoggiato uno user control ascx. I controlli sull'ascx vengono creati dinamicamente quando l'ascx è reso visibile visto che il numero degli stessi è variabile in base ad alcuni dati che devo mostrare. Per farmi capire meglio posto il codice:

public void displayUsrControl(string _codChange, string _desChange,int _numSplit, Elem _lista, int _oldSplit)
{

foreach (Elem _task in _lista)
{
for (int i = 0; i < _numSplit; i++)
{

//_posTop += 20;
TextBox _text = new TextBox();
_text.ID = "txtTask" + _task.IDTask + _task.IDApplicativo + i.ToString();
_text.Enabled = false;
_text.Style["Width"] = "300px";
_text.Text = _task.CodDesApplicativo;
_text.TextChanged += new System.EventHandler(this.TextBox_TextChanged);
HtmlTableRow tRow = new HtmlTableRow();
HtmlTableCell tCell = new HtmlTableCell();
tCell.Controls.Add(_text);
tRow.Cells.Add(tCell);
tblSplit.Rows.Add(tRow);

_text = new TextBox();
_text.ID = "txtTask" + _task.IDTask + _task.IDCompetenza + i.ToString();
_text.Enabled = false;
_text.Style["Width"] = "100px";
_text.Text = _task.DESSkill;
_text.TextChanged += new System.EventHandler(this.TextBox_TextChanged);

tCell = new HtmlTableCell();
tCell.Controls.Add(_text);
tRow.Cells.Add(tCell);
tblSplit.Rows.Add(tRow);

_text = new TextBox();
_text.ID = "txtTask" + _task.IDTask + "ggStima" + i.ToString();
_text.Enabled = true;
_text.Style["Width"] = "50px";
if (_oldSplit != 0)
_text.Text = Math.Round((Convert.ToDecimal(_task.GGStima) / _numSplit), 2).ToString();
_text.TextChanged += new System.EventHandler(this.TextBox_TextChanged);

tCell = new HtmlTableCell();
tCell.Controls.Add(_text);
tRow.Cells.Add(tCell);
tblSplit.Rows.Add(tRow);


}
dgpanel.Controls.Add(tblSplit);

}
}


Al momento riesco a creare i text box correttamente, il problema è che alcuni di questi (nello specifico i "ggStima" ) devono poter essere modificati dall'utente e quindi devo poterli controllare e salvare poi sul db. Come faccio dall'evento del code behind di un bottone asp rileggere i valori della pagina ?
Ho provato con

(TextBox)dgpanel.FindControl(_prefisso + _task.IDTask + "ggStima" + i.ToString());

ma ricevuto un bel "null" anche se guardando dall'html della pagina l' ID che passo è corretto.. qualcuno ha qualche idea?

Grazie mille
B.