I have a form with 5 TextBox contorls with id's like tbHeadline1, tbHeadline2. What I am trying to do is use a for loop to iterate through the controls and based on the DataSet and i value populate the text attribute. I tried this, but each time it comes back as a null object:
for (int i = 0; i < newsItems.Count; i++){
TextBox title = (TextBox)Page.FindControl("tbHeadline" + i.ToString());if(title != null)
Go to the complete details ...