title: Why am I getting a Parser Error when i follow this example?
body: <p>I followed these instructions here: <a href="http://w3schools.com/razor/razor_example.asp" rel="nofollow">http://w3schools.com/razor/razor_example.asp</a>
  NOTE: I'm using Web Matrix</p>
  
  <p>The example said to do this:</p>
  
  <pre><code>@
  {
  var imagePath; 
  if( Request["Choice"] != null)
  {imagePath="images\" + Request["Choice"];} 
  } 
  &lt;!DOCTYPE html&gt; 
  &lt;html&gt; 
  &lt;body&gt; 
  &lt;h1&gt;Display Images&lt;/h1&gt; 
  &lt;form method="post" action=""&gt; 
  &lt;div&gt;
     I want to see: 
     &lt;select name="Choice"&gt; 
        &lt;option value="Photo1.jpg"&gt;Photo 1&lt;/option&gt; 
        &lt;option value="Photo2.jpg"&gt;Photo 2&lt;/option&gt; 
        &lt;option value="Photo3.jpg"&gt;Photo 3&lt;/option&gt; 
     &lt;/select&gt; 
     &amp;nbsp; 
     &lt;input type="submit" value="Submit" /&gt; 
  &lt;/div&gt; 
  &lt;div style="padding:10px;"&gt; 
  @if(imagePath != "")
  {&lt;img src="@imagePath" alt="Sample" /&gt;} 
  &lt;/div&gt; 
  &lt;/form&gt; 
  &lt;/body&gt; 
  &lt;/html&gt; 
  </code></pre>
  
  <p>And all i get this this error:</p>
  
  <p>Does anything have to be setup to accept @ { being on seperate lines?</p>
  
  <pre><code>    Server Error in '/' Application.
      Parser Error 
      Description: An error occurred during the parsing of a resource
      required to service this request. Please review the following 
      specific parse error details and modify your source file appropriately. 
  
      Parser Error Message: A space or line break was encountered after
      the "@" character.  Only valid identifiers, keywords, comments, 
      "(" and "{" are valid at the start of a code block and they must 
      occur immediately following "@" with no space in between.
  
  
      Source Error: 
  
  
      Line 1:  @
      Line 2:  {
      Line 3:  var imagePath; 
  
  
      Source File: /Page.cshtml    Line: 1 
  
  
      Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 
  </code></pre>
  
  <p>If I put them on the same line, i get this error: </p>
  
  <pre><code>    Parser Error 
      Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. 
  
      Parser Error Message: The code block is missing a closing "}" character.  Make sure you have a matching "}" character for all the "{" characters within this block, and that none of the "}" characters are being interpreted as markup.
  
  
      Source Error: 
  
  
      Line 1:  @{
      Line 2:  var imagePath; 
      Line 3:  if( Request["Choice"] != null)
  
  
      Source File: /Page.cshtml    Line: 1
  </code></pre>
  
  <p>I don't know whats wrong.</p>