title: How can I reference data from an AppState variable?
body: <p>The problem is that I can't find a way to test anything stored in AppState["variableName"] (or App.variableName or HttpContext.Current.Application["variableName"], etc.) inside an if condition.  (It only ever sees it as an object, even though I can plot it on the page with Razor as the string variable I thought it was)</p>
  
  <p>So, I can't compare them to say an actual string value.</p>
  
  <p>I've tried ToString(), among countless other attempts, to no avail.</p>
  
  <p>My question is:  How can I achieve full functionality with the AppState variable in WebMatrix Web-Pages with C#?</p>