public void repMembersToApprove_ItemDataBound(object sender, RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item) { ProfileDisplay p = e.Item.FindControl("Profile1") as ProfileDisplay; CheckBox chkProfile = e.Item.FindControl("chkProfile") as CheckBox; p.LoadDisplay(((Account)e.Item.DataItem)); chkProfile.Attributes.Add("AccountID", ((Account)e.Item.DataItem).AccountID.ToString()); } }
private void Awake() { Instance = this; }