示例#1
0
 public override void DataBind()
 {
     this.Items.Clear();
     if (this.AllowNull)
     {
         base.Items.Add(new ListItem(this.NullToDisplay, string.Empty));
     }
     foreach (AgentGradeInfo info in VShopHelper.GetAgentGradeInfos())
     {
         this.Items.Add(new ListItem(Globals.HtmlDecode(info.AgentGradeName), info.AgentGradeId.ToString()));
     }
 }