ASP.NET中DropDownList下拉框列表控件绑定数据的4种方法

  public class ClassMonth

  {

  private string _MonthEN = DateTime.Now.ToString("MMMM",System.Globalization.CultureInfo.CreateSpecificCulture("en"));

  private string _MonthCN = DateTime.Now.ToString("MMMM", System.Globalization.CultureInfo.CreateSpecificCulture("zh-CN"));

  public ClassMonth()

  {

  MonthCN = DateTime.Now.ToString("MMMM", System.Globalization.CultureInfo.CreateSpecificCulture("zh-CN"));

  MonthEN = DateTime.Now.ToString("MMMM", System.Globalization.CultureInfo.CreateSpecificCulture("en"));

  }

  public ClassMonth(string cn,string en)

  {

  MonthCN = cn;//导入变量为属性赋值

  MonthEN = en;//导入变量为属性赋值

  }

  public string MonthEN //构造属性

  {

  get

  {

  return _MonthEN;

  }

  set

  {

  _MonthEN = value;

  }

  }

  public string MonthCN //构造属性

  {

  get

  {

  return _MonthCN;

  }

  set

  {

  _MonthCN = value;

  }

  }

  }