ASP.NET Repeater Template, Conditional Code for every Nth element

后端 未结 4 844
梦毁少年i
梦毁少年i 2021-02-13 13:34

I\'m using an asp.net repeater to create a bunch of images. The image markup is all the same so the standard is fine.

However, I want

4条回答
  •  北海茫月
    2021-02-13 14:02

    Here is where Asp.Net WebForms can give you incredible RAD efficiency. You can use the new ListView control, and set the number of items per "group", which will allow you to setup the HTML that surrounds a group, as well as each individual item. This way you can surround the group with the conditional tags.

    
    
        
    No data was returned.
    <%# Eval("title") %>

提交回复
热议问题