Data binding controls in asp.net

2019-08-13 19:01发布

I have to display a set of data in the following manner:

Data Listing

Which ASP.NET 3.5 control best matches my requirement?

If one matches, could you please give me an idea about how to format it to view like the image?

2条回答
Root(大扎)
2楼-- · 2019-08-13 19:17

I think repeater control would be fine for your requirement.

查看更多
【Aperson】
3楼-- · 2019-08-13 19:30

Well, first off you have multiple blocks (multiple rows) so I would suggest a Repeater. Within each block you must display three columns (the image the text and the small images), and you should use a Panel (renders as a ). In the second panel you have multiple lines of text for which you can use Labels because they allow for rendering as a so that you an include a class.

Style everything nicely with CSS and you should be able to remake the above picture.

查看更多
登录 后发表回答