|
张波老师
- 管理员
- 6690
- 803
-
2009-11-04
|
张波老师
2010-01-18 14:25
|只看楼主
1#
t
T
我知道在网页中可用<%# (Container.ItemIndex + 1)%> 获得。
但现在需要在ItemDataBound事件获得,请问代码怎样写呢?谢谢。 |
- protected void Repeater1_ItemDataBound(object sender, RepeaterItemEventArgs e)
- {
- int index = e.Item.ItemIndex;
- }
复制代码
|