Пример #1
0
 public override void DataBind()
 {
     this.Items.Clear();
     if (this.AllowNull)
     {
         base.Items.Add(new ListItem(this.NullToDisplay, string.Empty));
     }
     foreach (MemberGradeInfo info in PersonalHelper.GetMemberGrades())
     {
         this.Items.Add(new ListItem(Globals.HtmlDecode(info.Name), info.GradeId.ToString()));
     }
 }
Пример #2
0
 public override void DataBind()
 {
     this.Items.Clear();
     if (this.AllowNull)
     {
         base.Items.Add(new System.Web.UI.WebControls.ListItem(this.NullToDisplay, string.Empty));
     }
     System.Collections.Generic.IList <MemberGradeInfo> memberGrades = PersonalHelper.GetMemberGrades();
     foreach (MemberGradeInfo current in memberGrades)
     {
         this.Items.Add(new System.Web.UI.WebControls.ListItem(Globals.HtmlDecode(current.Name), current.GradeId.ToString()));
     }
 }