I have created some dynamic TextBox in ASP.NET Web Forms. Please somebody tell me, how I can get the text values of corresponding textboxes and save them to database. Here is my code:
for (int i = 0; i < n; i++)
{
MyTextBox.ID = "tb" + "" + ViewState["num"] + i;
this.PlaceHolder1.Controls.Add(MyTextBox);
}
CssClassproperty of the asp:textbox and get by classname and postback using javascript. Values in dynamic textbox refreshes with every page load.