title: ASP.NET - Difference between @ syntax and <% %>?
body: <p>I just started a job that uses ASP.NET, which I'm not terribly familiar with yet. </p>
  
  <p>In most of the .cshtml files there are C# code nuggets with an @ sign, but then I also see &lt;% %> lines that appear to be doing the same thing (though often the &lt;%'s are more mixed in with HTML code).</p>
  
  <p>The only thing I've found online that compares the two is this website:
  <a href="http://haacked.com/archive/2011/01/06/razor-syntax-quick-reference.aspx/" rel="nofollow">http://haacked.com/archive/2011/01/06/razor-syntax-quick-reference.aspx/</a>
  which is helpful, but seems to show the two forms of syntax being used for the exact same things.</p>
  
  <p>What is the difference? Why use one and not the other?</p>