获取DropDownList asp.net的索引

Was*_*RAR -1 vb.net asp.net drop-down-menu

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

Jus*_*tin 7

DropDownList ddl = YourDropDownList;
//this
ddl.SelectedItem;
//or this
ddl.SelectedValue;
//or this
ddl.Items[ddl.SelectedIndex];
Run Code Online (Sandbox Code Playgroud)

你在追求什么?