asp. net method to get the select value

  • 2020-07-21 07:29:51
  • OfStack

 
<select runat="server" class="xgxxbd" id="wyzs"> 
<option value="6"> The toefl </option> 
</select> 
wyzs.Items[wyzs.SelectedIndex].Text;// Get the text  
// Get the value  
wyzs.Items[wyzs.SelectedIndex].value; 
wyzs.value 

Related articles: