kureshtari
New Member
i am kinda new to asp.net, and also my english not really good, anyway i hope you still can get my point. nah i have a question here, basically i trying to integrate my app with LinkedIn, so i am using REST API, when i click a button it redirect my page to request data from LinkedIn, it returned XML data, and it contain user's education data, the count of user's education data is uncertain, so i decided to generate text box control from behind ("C#"). i do this :\[code\] TextBox txt; int i; foreach (var element in person) { if ((element.Name == "first-name") || (element.Name == "last-name")) { tbName.Text = tbName.Text + " " + element.Value; } else if (element.Name == "skills") { i = 1; foreach (var child in element.Elements()) { if (child.Name == "skill") { txt = new TextBox(); txt.ID = "tbSkills" + i; txt.Width = 200; txt.Visible = true; txt.ReadOnly = true; txt.Text = child.Element("skill").Element("name").Value; form1.FindControl("divMoreSkills").Controls.Add(txt); i++; } } } else if (element.Name == "industry") { tbIndustry.Text = element.Value; } else if (element.Name == "educations") { i = 1; foreach (var child in element.Elements()) { if (child.Name == "education") { txt = new TextBox(); txt.ID = "tbEducations" + i; txt.Width = 200; txt.Visible = true; txt.ReadOnly = true; txt.Text = child.Element("school-name").Value; form1.FindControl("divMoreEducations").Controls.Add(txt); i++; } } } } }\[/code\]my question is, if i want to use text box i generated previously later, does C# will recognize it? because the control i generated did not have runat server property.thank you.