【问题标题】:Get index of DropDownList asp.net [closed]获取 DropDownList asp.net 的索引 [关闭]
【发布时间】:2010-05-28 21:25:02
【问题描述】:

我想获取 DropDownList 中指定索引的值

【问题讨论】:

    标签: asp.net vb.net drop-down-menu


    【解决方案1】:
    DropDownList ddl = YourDropDownList;
    //this
    ddl.SelectedItem;
    //or this
    ddl.SelectedValue;
    //or this
    ddl.Items[ddl.SelectedIndex];
    

    你想要什么??

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-03
      • 2013-03-30
      • 2012-10-17
      • 1970-01-01
      相关资源
      最近更新 更多