title: Get DropDownList Selected Value by Selected Text
body: <p>Do anyone knows how to get selected value of a drop down list by selected text?</p>
  
  <p>I tried the below method but doesn't work:</p>
  
  <pre><code>ddlWorkType.SelectedItem.Text = "writing"
  myddlvalue = ddlWorkType.SelectedValue
  </code></pre>
  
  <p>Please show me how. Thanks.</p>