title: httpcontext.current.request default return value if not set
body: <p>I've spent a lot of time googling this and testing in my program, but I can't get any output. I'm coding in C# codebehind aspx. I'm trying to query the url of </p>
  
  <p>anUnknownWebsite.aspx?SerialNumber=CND0340482</p>
  
  <p>And getting the serial number with the httpcontext.current.request["SerialNumber"] method.</p>
  
  <p>One half of my program works fine, where if the serial number is set in the URL, everything works fine, but I want to have a boolean statement like the following:</p>
  
  <pre><code>    if(HttpContext.Current.Request["SerialNumber"] == null)
      {
      Do this
      }else
      {
      Do something else
      }
  </code></pre>
  
  <p>I just want to know if the method will have a default value or a null value to get a boolean from because the if statement above doesn't work.
  Open to try any new ideas or theories on this.</p>
  
  <p>Thanks guys</p>