title: Get guid values with js and razor
body: <p>I have an Asp.Net mvc 3 project
  I'm using razor, and need to generate guids in javascript</p>
  
  <p>I was trying this:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $(document).ready(function () {
      function getNewGuid() {
          return '@Guid.NewGuid()';
      }
  </code></pre>
  
  <p>I'm using inside the click event for a button, but the second call to the function is returning the same value</p>
  
  <p>What should I do for reevaluating the function with each call?</p>