I have a repeater.. and in my repeater i have a link that fires some JS.
I would like to pass the itemIndex of the datasource in the JS.
Is there some way to do this without using OnItemBound or OnItemCreated??
like..
<a href="#" onclick="dosomestuff(<%# this.item.index %>); return false;">Add Stuff</a>
i know the syn开发者_如何学Pythontax is completely wrong but hopefully you get the idea.. thanks!
Like this:
<%# Container.ItemIndex %>
精彩评论