title: How to get query string parameter value in asp.net core?
body: <p>I'm trying to get a query string value using:</p>
  
  <pre><code>_httpContextAccessor.HttpContext.Request.QueryString["data"]
  </code></pre>
  
  <p>but it fails with error:</p>
  
  <blockquote>
    <p>Cannot apply indexing with [] to an expression of type 'QueryString'</p>
  </blockquote>
  
  <p>QueryString is from the <code>Microsoft.AspNetCore.Http</code> namespace.</p>