开发者

Can i bind an the datasource Index in a repeater/grid

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 %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜