Change repeater li item class if first or last

前端 未结 10 2129
时光说笑
时光说笑 2020-12-05 07:11

I\'m using repeater to create dynamic ul li list

Is it possible to control class whether item is first or last?

Something like:

class=\"<%         


        
10条回答
  •  -上瘾入骨i
    2020-12-05 07:35

    As for your question on the difference between <%= and <%#, please see the following links:

    Code Render Blocks:

    http://msdn.microsoft.com/en-us/library/k6xeyd4z(v=vs.71).aspx

    Data Binding Expression Syntax:

    http://msdn.microsoft.com/en-us/library/bda9bbfx(v=vs.71).aspx

提交回复
热议问题