What you need to do is something like this:
for(int i=0;i<10;i++)
{
TextBox txt = new TextBox();
txt.ID = "txt" + i.ToString();
txt.AutoPostBack = true;
txt.TextChanged += new EventHandler(foo)
//add textbox to container control
}
protected void foo(object sender, EventArgs e)
{
if(sender is TextBox)
{
TextBox t = (TextBox)sender;
//get the value of the changed text
string foo = t.Text;
}
}
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
Professional IIS 7 and ASP.NET Integrated Programming
================================================== =========