title: simple question: Difficulty in declaring and using variable
body: <p>What is wrong with the following code:  I`m having the error message </p>
  
  <blockquote>
    <p>Error 1   ; expected  </p>
  </blockquote>
  
  <pre><code>    &lt;%if (Model.ReferenceFields != null)
            {%&gt;
              &lt;%int count = 1; %&gt;
  
              &lt;%foreach (var referenceName in Model.ReferenceFields)
              {%&gt;
               &lt;%var value = "value"; %&gt;
               &lt;%count++; %&gt;
               &lt;%value = value + count.ToString(); %&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;input type="hidden" name="Tests.Index" value='&lt;%value%&gt;' /&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input type="text" name="Tests['&lt;%value%&gt;'].Value"/&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;input type="button" value= "Add" /&gt;&lt;/td&gt;&lt;/tr&gt;
              &lt;%}
                 %&gt;
           &lt;%}
          %&gt;
  </code></pre>