title: Best way to check if a drop down list contains a value?
body: <p>When the user navigates to a new page, this ddl's selected index is determined by a cookie, but if the ddl doesn't contain that cookie's value, then I'd like it to be set the 0. What method would I use for the ddl? Is a loop the best way, or is there a simply if statement I can perform?</p>
  
  <p>This is what I've attempted, but it doesn't return a bool.</p>
  
  <pre><code>if ( !ddlCustomerNumber.Items.FindByText( GetCustomerNumberCookie().ToString() ) )
      ddlCustomerNumber.SelectedIndex = 0;
  </code></pre>