title: ASP.Net MVC : Get query values with no key
body: <p>I have URL: <a href="http://site.com/page.aspx?update" rel="nofollow">http://site.com/page.aspx?update</a></p>
  
  <p>how do I check if that update value is present?</p>
  
  <p><code>HttpValueCollection</code> treats that as an entity with <code>null</code> key. I have tried:</p>
  
  <pre><code>var noKeyValues = Request.QueryString.GetValues(null);
  if (noKeyValues != null &amp;&amp; noKeyValues.Any(v=&gt;v==update)) ...
  </code></pre>
  
  <p>but it gives me a frowny line, because GetValues' argument is decorated with [NotNull].</p>
  
  <p>so I end up doing:</p>
  
  <pre><code>    var queryValuesWithNoKey =
              Request.QueryString.AllKeys.Select((key, index) =&gt; new { key, value = Request.QueryString.GetValues(index) }).Where(
                      item =&gt; item.key == null).Select(item =&gt; item.value).SingleOrDefault();
      if (queryValuesWithNoKey != null &amp;&amp; queryValuesWithNoKey.Any(v =&gt; v.ToLower() == "update")) live = true;
  </code></pre>
  
  <p>not the most elegant workaround. Is there a better way to get key-less value from query string?</p>