ddlSchtype.Items.Add("-=请选择您的学校类型=-");
ddlSchtype.Items.Add("大 学(大学、大专、研究所等)");
ddlSchtype.Items.Add("中 学(高中、初中)");
ddlSchtype.Items.Add("中 专(技校、中专等)");
ddlSchtype.Items.Add("小 学");
使value的值分别为1,2,3,4

解决方案 »

  1.   

    ddlSchtype.Items.Insert(0,"-=请选择您的学校类型=-");
    ddlSchtype.Items.Insert(1,"大 学(大学、大专、研究所等)");
    ddlSchtype.Items.Insert(2,"中 学(高中、初中)");
    ddlSchtype.Items.Insert(3,"中 专(技校、中专等)");
    ddlSchtype.Items.Insert(4,"小 学");
      

  2.   

    ListItem newItem = new ListItem(text,value);
    drptest.Items.Add(newItem);
      

  3.   

    ddlSchtype.Items.Add("-=请选择您的学校类型=-");
    ddlSchtype.Items.Add(new ListItem("大 学(大学、大专、研究所等)","1"));
    ddlSchtype.Items.Add(new ListItem("中 学(高中、初中)","2"));
    ddlSchtype.Items.Add(new ListItem("中 专(技校、中专等)","3"));
    ddlSchtype.Items.Add(new ListItem("小 学","4"));