label.text=this.DrpoDownList1.selectvalue.ToString()

解决方案 »

  1.   

    int i = Convert.ToInt32(DropDownList1.SelectValue);
      

  2.   

    需要的INT的参数=(int)DrpoDownList1.value
      

  3.   

    int value=DrpoDownList1.selectValue;
      

  4.   

    DropDownList1.SelectValue (String 类型)Convert.ToInt32() 方法 
    将数字的指定 String 表示形式转换为等效的 32 位有符号整数Int32.Parse 方法 
    将数字的字符串表示形式转换为它的等效 32 位有符号整数
      

  5.   

    int i=0; 
    if(DropDownList1.SelectedValue=="中国") 

    return i=1; 

    else 

    return i=2; 
    }
      

  6.   

    int.parse(DropDownList1.SelectValue.toString());
      

  7.   

    我没记错的话,上面的几位都写的不是很对,
    int num=Convert.Toin32(DropDownList1.SelectedValue);
    而不是Selectvalue。
    这样的写法才正确!