Vishal Pandey

Vishal Pandey

  • NA
  • 19
  • 23.5k

Dynamic TextBox & CheckBox

Jun 5 2006 3:27 AM
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.

Answers (1)