开发者

Beginner question about e.Item.ItemIndex

开发者 https://www.devze.com 2023-01-21 08:35 出处:网络
There\'s this line o开发者_开发问答f code inside of some repeater\'s ItemDataBound event that includes e.Item.ItemIndex..Now I get it that ItemIndex is the index of the item in the list..

There's this line o开发者_开发问答f code inside of some repeater's ItemDataBound event that includes e.Item.ItemIndex..Now I get it that ItemIndex is the index of the item in the list..

What's "e" and "Item" here ? Actually I do have an idea. Just want to be more clear. Could someone please tell me in simple terms ? Thanks.


e is an instance of RepeaterItemEventArgs Class and Item is RepeaterItemEventArgs.Item Property


It is an instance of the RepeaterItemEventArgs class. For a better understand of databinding, see the article Mastering ASP.NET DataBinding.

0

精彩评论

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