views:

84

answers:

4

We are currently using a repeater to display input fields, drop downs, check boxes, and calendar items on each row. The desired functionality is to allow the user to add up to 10(this could potentially change by web config) items (each row).

Is it appropriate to list these out in a repeater or am I going about this the wrong way? What should I be using? Is there something lighter?

+5  A: 

asp.net repeaters. To use or not to use

USE!

A repeater is crazy lightweight and perfect for this. Use it all over the place!

Slightly more in-depth answer:

If you are having some performance problems that are causing you to rethink your code, start by profiling. It will shed light on where the real problems are right away, and I guarantee they won't be from using a repeater. The amount of time your application spends in repeater code is almost certainly not even worth measuring.

If you're not having performance problems, why are you asking? :) Go build something or have a coffee and leave well enough alone. Don't optimize until it's clear you need optimization.

Rex M
+3  A: 

a Repeater is about the lightest thing you can use; it only displays what you tell it to. I'd say it's quite acceptable.

Noon Silk
+4  A: 

Repeater is about as light weight as it gets. If you have a sound code base that supports iteratively showing fields with a Repeater, then that's basically as good as it gets.

Jasconius
A: 

ASP.NET's Repeater control is the lightest data control, if you want to get rid of it and using ASP.NET v 3.5 then I would recommend you to use Listview control instead.

Hope this works!

Shahnawaz Khan