this.Select1.Items[Select1.SelectedIndex].Value;

解决方案 »

  1.   

    string str=selected.SelectedItem.Text
      

  2.   

    你要是要text就是你选项中看到的,就有.text
      要是取它的指定值就用.value
      

  3.   

    我的cs文件和aspx文件是分开的,
    在cs 文件里 怎么定义 select 的名字,
    不是定义后,才能用selected.SelectedItem.Text
    例如像这样
    protected select selected;
    应该怎么写?
      

  4.   

    <select id="selected" runat="server">
    <option value=a>1</option>
    <option value=b>2</option>
    <option value=c>3</option>
    </select>
    selected.item(1).value=a
    selected.item(1).text=1知道了???
    给分吧~
      

  5.   

    我的cs文件和aspx文件是分开的,
    在cs 文件里 怎么定义 select 的名字,
    不是定义后,才能用selected.SelectedItem.Text
    例如像这样
    protected select selected;
    应该怎么写?
    讲完就给分
      

  6.   

    protected System.Web.UI.HtmlControls.HtmlSelect select;
      

  7.   

    在服务端通过select.Value来取得它的值