title: MVC3 and Razor - How to place a dynamic value for hidden field?
body: <p>I'm a beginner about Razor, and sometimes I get stuck with really simple things. </p>
  
  <p>I have this foreach loop:</p>
  
  <pre><code>@foreach (dynamic item in ViewBag.EAList)
  {
  &lt;li&gt;
      @using (@Html.BeginForm("Duplicate, "Daily"))
      {
          &lt;p&gt;@item.AuthorComment&lt;/p&gt;
          @Html.Hidden("EstadoDeAlmaID", @item.EAID)
          @Html.Hidden("PosterID", Session["id"].ToString())
          &lt;input type="submit" value="Send" /&gt;
      }
  &lt;/li&gt;
  }
  </code></pre>
  
  <p>This line:</p>
  
  <pre><code>@Html.Hidden("EstadoDeAlmaID", @item.EAID)
  </code></pre>
  
  <p>Doesn't work, and I don't know how to make it work, I tried many ways, without @, with (--), with @(--)...</p>
  
  <p>Could someone help me to display the dynamic value in my hidden field? 
  In addition, if someone know about a good Razor samples websites, I would be very thankful.</p>