Dynamic TextBox & CheckBox
I,m Developing a project in asp.net 2.0 using c# Dynamically. so i create all server type control at runtime.
like
// Create Dynamic Textbox
for (int a = 1; a < 4; a++)
{
TextBox Textdata = new TextBox();
Textdata.ID = "a" + a;
Textdata.Attributes.Add("runat", "Server");
//Textdata.Attributes.Add("
");
Textdata.EnableViewState = false;
Textdata.MaxLength = 128;
place.Controls.Add(new LiteralControl("
"));
place.Controls.Add(Textdata);
}
how i can store data in a database when i insert data in textbox and we doesnt know Id of textbox.