title: How do I get selected value from select box using Request.Form?
body: <p>I'm submitting a form and need to collect the data.<br>
  <a href="http://www.codeproject.com/KB/aspnet/RequestParam.aspx" rel="nofollow noreferrer">Following this example</a>, I'm trying to retrieve the value I selected in a select box.</p>
  
  <p>The problem is, the select box does not have the attribute 'name'.  </p>
  
  <pre><code>&lt;asp:DropDownList runat="server" ID="countySelect" CssClass="ddlCountySelect" DataValueField="kommunekode" DataTextField="kommune" &gt;&lt;/asp:DropDownList&gt;
  </code></pre>
  
  <p>How can I then retrieve its selected value?</p>
  
  <p>This is the code I'm trying to use:</p>
  
  <pre><code>        if (Request.Form.Count &gt; 0)
              lblTest.Text = Convert.ToString(Context.Request.Form["countySelect"]);
          else
              lblTest.Text = "nada";
  </code></pre>
  
  <p>The result is blank.</p>