find repeaters to bind to
Posted on 2007-08-10
Originally in this code they had 3 seperate methods looking up and binding data to 2 repeaters and one datalist on the page.
The controls on the page are named:
Each method does this:
Type1.DataSource = DS;
Type2.DataSource = DS;
Type3.DataSource = DS;
So instead of 3 methods i placed one method in a loop that loops 3 times...
for (int i = 1; i <= 3; i++)
At the end of the loop how would i find and target each control to bind to?