title: How do I access query string parameters in asp.net mvc?
body: <p>I want to have different sorting and filtering applied on my view
  I figured that I'll be passing sorting and filtering <em>params</em> through query string:</p>
  
  <pre><code>@Html.ActionLink("Name", "Index", new { SortBy= "Name"})
  </code></pre>
  
  <p>This simple construction allows me to sort. View comes back with this in query string:</p>
  
  <pre><code>?SortBy=Name
  </code></pre>
  
  <p>Now I want to add filtering and i want my query string to end up with </p>
  
  <pre><code>?SortBy=Name&amp;Filter=Something
  </code></pre>
  
  <p>How can I add another parameter to list of already existing ones in <code>ActionLink</code>? for Example:</p>
  
  <pre><code>user requests /Index/
  </code></pre>
  
  <p>view has </p>
  
  <pre><code> @Html.ActionLink("Name", "Index", new { SortBy= "Name"})
  </code></pre>
  
  <p>and </p>
  
  <pre><code> @Html.ActionLink("Name", "Index", new { FilterBy= "Name"})
  </code></pre>
  
  <p><strong>Links</strong>: The first one looks like <code>/Index/?SortBy=Name</code> and The second is  <code>/Index/?FilterBy=Name</code></p>
  
  <p>I want when user pressed sorting link after he applied some filtering - filtering is not lost, so i need a way to combine my params.
  My guess is there should be a way to not parse query string, but get collection of parameters from some MVC object.</p>