如题!

解决方案 »

  1.   

    循环..
    foreach(ListItem in DropdownList1){
      在这里写入到数据库
    }
      

  2.   

    你的DropDownList里面的ListItem不是在后台读数据初始化的?如果是,直接读数据库可以了.
    如果是在客户端用JS生成的,那就麻烦了.
      

  3.   

    Sorry.笔误,打错了.foreach(ListItem li in dl.Items)
    {
    Response.Write(li.Value);
    }
      

  4.   


    foreach(ListItem li in dl.Items)
    {

    }
      

  5.   

    foreach(ListItem oItem in ShrXb.Items)
        {
    if (oItem.Value==dr["ShrXb"].ToString())
       {
          oItem.Selected=true;
       }
        }
      

  6.   

    DropDownList dl=new DropDownList();
    dl.Items.Add(new ListItem("杭州","1"));
    dl.Items.Add(new ListItem("北京","2"));
    string temp="";
    foreach(ListItem li in dl.Items)
    {
       temp+=li.Value;
    }