title: How can I parse a value to show as an integer in a razor view?
body: <p>I have     </p>
  
  <pre><code>    @{
      var to = Model.PageMeta.TestID == "00" ? "All Tests" : Model.PageMeta.TestID;
      }
  </code></pre>
  
  <p>The value of TestID can be "00","01","02" etc</p>
  
  <p>What I would like to do is display this as "All Tests", "1", "2" etc.  In other words I want to just show the value without the leading zero. </p>
  
  <p>I tried </p>
  
  <pre><code>parseInt(Model.PageMeta.TestID) 
  </code></pre>
  
  <p>but this gave me a compiler error.</p>