Last post Jan 13, 2011 02:28 PM by N_EvilScott
Jan 13, 2011 02:14 AM|jomskj|LINK
how to insert data into an xml file ,from dynamically created textboxes through dynamically created button using c#.
Jan 13, 2011 02:28 PM|N_EvilScott|LINK
Since your adding the dynamic buttons to some sort of container, most likely a place holder.. and you need to attach a click event to the button it would look something like this...
protected void Button_Click (object sender, EventArgs e)
foreach (Control c in YourPlaceHolder.Controls)
if (c.GetType() == typeof(TextBox))
string text = (c as TextBox).Text;
// add to xml file here