Container.ItemIndex 获取reapeater行号
生活随笔
收集整理的這篇文章主要介紹了
Container.ItemIndex 获取reapeater行号
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?
<div class="<%# (Container.ItemIndex)==4?"class3":"class4" %>"></div>
?
取到第五行的行號(hào),用一個(gè)三元運(yùn)算符來判斷div的樣式。
?
圖中container.itemindex==(container.ItemIndex-5)是不對(duì)的,最上面的代碼才是正確寫法。
轉(zhuǎn)載于:https://www.cnblogs.com/sheseido/archive/2010/11/10/1873217.html
總結(jié)
以上是生活随笔為你收集整理的Container.ItemIndex 获取reapeater行号的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 设计模式----Adapter(适配器)
- 下一篇: 这几天惨遭Delphi类型转换折磨,请问