title: ASP.NET - How to strip Query String after/before ? from ASPX parameter passing?
body: <p>I would like to parse the values from aspx pages, both what is passed before the ? and after it?  So, what is the C# function that allows me to parse that out?</p>
  
  <p>I would like to do something like:</p>
  
  <pre><code>var pageType = parameter.trimBefore?();
  
  var pageString = parameter.trimAfter?();
  </code></pre>
  
  <p>Thanks for any advice.</p>