Rashedul.Rubel
Rashedul.Rubel

Reputation: 3584

div inside listview in asp.net aspx page

I wanted to show 20 items from database using a listview. but those items should be shown in two divs. 10 items in each div. The problem is, how can i build div inside listview itemtemplate for the items in aspx page?

Upvotes: 2

Views: 431

Answers (1)

Davide Piras
Davide Piras

Reputation: 44605

if the level of customization you are looking for is not easi or possible to achieve with customization of the ASP.NET listview ItemTemplate, you can uset the repeater object and customize its ItemTemplate, the repeater has been designed exactly for these cases, it supports data binding and allows you to define / customize totally the layout of items to repeat.

see here: ASP.NET TUTORIAL. HOW TO USE REPEATER

Upvotes: 1

Related Questions