开发者

In what point a Repeater differs from DataList web-server control?

They are both data bound controls开发者_StackOverflow中文版. They both have template related features. Can you explain in what point Repeater differs from DataList web-server control? And when one should be picked to be used?

Thanks!


Here is a nice difference explanation http://msdn.microsoft.com/en-us/library/Aa479015


Generally, when you need to layout a list where each item represents a cell in a grid you would go for a data list.

Think of a product catalog, where each item is displayed in a cell, instead of covering the full row of the grid.

If you want the item to spawn across the entire row, like Stackoverflow questions, you would use the repeater (or any other list control).

Hope it helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜