Link to home
Avatar of pratikshahse
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
ASKER CERTIFIED SOLUTION
Avatar of Brijesh Gandhi
Brijesh Gandhi
Flag of India image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial