@{
ViewBag.Title = "Features";
}
<h2>Features</h2>
<table>
  <tbody>
    <tr valign="top">
      <td>
        <fieldset>
          <legend>
            Razor Syntax
          </legend>
            @@for (int x = 0; x < 10; x++ )<br />
            {<br />
            &nbsp;&nbsp;@@:Starting Line without HTML tag<br />
            &nbsp;&nbsp;&lt;div>Value:@@x&lt;/div><br />
            &nbsp;&nbsp;&lt;text><br />
            &nbsp;&nbsp;Several lines<br />
            &nbsp;&nbsp;Starting without Html Tags<br />
            &nbsp;&nbsp;&lt;/text><br />
            }<br />
          <br />
          Single Code Call<br />
          @@Html.ActionLink("ActionName", "ControllerName", new { id = 5 })<br />
          <p />
          <div>
            Multiple Functions in a code block<br />
              @@{<br />
              &nbsp;&nbsp;for (int x = 0; x < 10; x++)<br />
              &nbsp;&nbsp;{<br />
              &nbsp;&nbsp;&nbsp;@@:Value:@@x<br />
              &nbsp;&nbsp;}<br />
              &nbsp;&nbsp;for (int x = 0; x < 10; x++)<br />
              &nbsp;&nbsp;{<br />
              &nbsp;&nbsp;&nbsp;@@:Value:@@x<br />
              &nbsp;&nbsp;}<br />
              }<br />
          </div>
        </fieldset>
      </td>
      <td>
        <fieldset>
          <legend>
            Passing Data to the View
          </legend>
          <table>
            <tr>
              <td>
                ViewBag.Message = "Foo"
              </td>
              <td>
                ViewData["Message"] = "Foo"
              </td>
            </tr>
            <tr>
              <td>
                TempData["Message"] = "Foo"
              </td>
              <td>
                Removed when request is processed
              </td>
            </tr>
            <tr>
              <td>
              @Html.ActionLink("Redirect", "FeaturesRedirect")
              </td>
              <td>
              @Html.ActionLink("Refresh", "Features")
              </td>
            </tr>
          </table>
        </fieldset>
      </td>
    </tr>
  </tbody>
</table>
