title: How do I get ViewData inside a form to display correctly?
body: <pre><code>&lt;%:ViewData["galleryId"]%&gt;
  &lt;% using (Html.BeginForm(
               "FinishEdit" , 
               "GalleryManager" , 
               FormMethod.Post , 
               new { enctype = "multipart/form-data" }
               )
           ) 
     {%&gt;
      &lt;%:Html.Hidden("galleryId" , ViewData["galleryId"])%&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>The view data outside of the form renders correctly, but the <code>viewdata</code> inside the form does not. What is going on?</p>