DotnetDude
DotnetDude

Reputation: 11817

Which ASP.NET server control would you suggest for this?

I need to build a web page that has categorized data that looks like the screenshot below. Initially, I thought of using a Repeater or a DataList but I am not sure. Which ASP.NET control do you suggest? I am working on ASP.NET 4.0

enter image description here

Upvotes: 0

Views: 75

Answers (1)

IrishChieftain
IrishChieftain

Reputation: 15252

Use a ListView. It will give you the functionality you need with the added benefit of clean markup using the templates.

http://weblogs.asp.net/scottgu/archive/2007/08/10/the-asp-listview-control-part-1-building-a-product-listing-page-with-clean-css-ui.aspx

Use nesting in the templates "if you really have to". Avoid nesting top-level controls like the ListView - totally unnecessary and a performance killer.

Upvotes: 3

Related Questions