Hi,
When we use repeater control in asp.net ?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Andrew FensterPosted Aug 26, 2011, 11:15 AM
Suppose you have a list of employees, with name, address, phone, email, and you want to display them in some format other than a grid. The repeater lets you define a template. For example, you might display:
Name
Address
Email
Phone
or
Name (Title)
Address
Phone / Email
The repeater lets you define a layout for each record and then bind a list of records to it. You can add controls if you want. For example, you could make the email editable by putting it in a text box.
The repeater can be very handy.