Can i bind an the datasource Index in a repeater/grid
Posted
by bill
on Stack Overflow
See other posts from Stack Overflow
or by bill
Published on 2010-05-26T01:09:01Z
Indexed on
2010/05/26
1:21 UTC
Read the original article
Hit count: 297
Hi All,
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 syntax is completely wrong but hopefully you get the idea.. thanks!
© Stack Overflow or respective owner