private void list_ItemDataBound(object sender,  RepeaterItemEventArgs e)
{
TextBox score;
if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{       
score = (TextBox) e.Item.FindControl("score");
if(score != null)
score.Attributes.Add("onchange","yourFunction('" +

score.ClientID + "');");
}
}

posted on 2007-08-23 15:49  绿毛虫  阅读(223)  评论(0)    收藏  举报