I'm dynamically creating textboxs, dropdowns, linkbuttons, and labels after postback. After I submit, I want to find a control, such as a textbox and get the .text. Any recommendations?
protected void Page_Load(object sender, EventArgs e)
{
if (DropDownSectionLetter.SelectedValue != "0")
{
lblRowMain.Visible = true;
for (int a = 0; a < Convert.ToInt32(DropDownSectionLetter.SelectedValue); a++)
{
DropDownList dd = new DropDownList();
dd.Width = 100;
dd.Load += new EventHandler(ddList_Load);
dd.AutoPostBack = true;
dd.SelectedIndexChanged += new EventHandler(OnTextChanged);
dd.ID = "DropDownSection" + LetterArray[a] + "rows";
dd.DataSourceID = "SqlDataSourceLetter";
dd.DataTextField = "Number";
...
Go to the complete details ...