title: How to retrieve multiple values for a querystring parameter in asp.net
body: <p>Suppose a page is invoked with multiple values for a parameter, like:</p>
  
  <pre><code>http://example.com/mypage.aspx?x=1&amp;x=2
  </code></pre>
  
  <p>I find that request.QueryString("x") = "1,2".</p>
  
  <p>Okay, that's fine, I guess I can do a string.split on it to get the individual values.</p>
  
  <p>But if the query is</p>
  
  <pre><code>http://example.com/mypage.aspx?x=1,2&amp;x=3
  </code></pre>
  
  <p>Then request.QueryString("x") = "1,2,3".</p>
  
  <p>Is there any way to distinguish multiple values from values with an embedded comma? I wistfully recall that in Java you'd get an array with a separate entry for each value.</p>
  
  <p>(I tried saying "mypage.aspx?x=1%2c&amp;x=3", but that also gives "1,2,3".)</p>