pratikshahse
asked on
Loop Through Repeater control
Here is what I want:
I have 4-5 repeatercontrols on my page. On a click of a button I want to loop through each repeater and get its name.
For example I have
repeater1
repeater2
repeater3
repeater4
Button click event
foreach (RepeaterItem repItems in repeater1.Items)
{}
so when its the first loop i want to go through all the items of repeater1. next time around i want to go through repeater2 items and so on until it finds the last repeater on the page.
I hope I am making sense.
Thanks
I have 4-5 repeatercontrols on my page. On a click of a button I want to loop through each repeater and get its name.
For example I have
repeater1
repeater2
repeater3
repeater4
Button click event
foreach (RepeaterItem repItems in repeater1.Items)
{}
so when its the first loop i want to go through all the items of repeater1. next time around i want to go through repeater2 items and so on until it finds the last repeater on the page.
I hope I am making sense.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.