title: Asp.Net MVC parent Html.ViewBag from inside a partial
body: <p>i am having problems to solve this on a generic way.</p>
  
  <p>We have our own BeginForm and FieldFor, the beginForm calculates the PermissionLevel for that particular target url and saves some information on the ViewData. Then FieldFor uses that information to show various annotations on the rendered controls.</p>
  
  <p>Now the problem is when a partial is used to render the fields inside the form. It seems that the parent's ViewData is not available inside the partial (wich is rendered using the default Html.Partial extension) so the annotations are not shown.</p>
  
  <p>Debugging it i found that the ViewData property of the WebViewPage is shared, but the one on Html.ViewData is not. Since i am using a helper to render the fields i only have the viewdata inside the HtmlHelper and not the property of the view.</p>
  
  <p>Any ideas?</p>
  
  <p>Thanks.</p>