If sort_id.SelectedItem = "" Then
..不行啊..请再指教//呵呵

解决方案 »

  1.   

    if (sort_id.Checked)
    {
    }
      

  2.   

    我的RadioButtonList怎么好象没有Checked这个属性呢?
      

  3.   

    要用RadioButtonList1.SelectedItem.Text或RadioButtonList1.SelectedItem.Value
    看你的设置了
      

  4.   

    sort_id.SelectedITem.Value不就可以了吗?
      

  5.   

    如果一个都没选的话,sort_id.SelectedITem.Value这样不会出错吗?
      

  6.   

    foreach(ListItem item in sort_id.Items)
    {
    if(item.Selected)
    {
    //do what you want }
    }
      

  7.   

    if(this.RadioButtonList1.SelectedIndex==-1)
    等于-1是没有选中