title: Rendering Html.Hidden helper with custom value
body: <p>I have the following razor markup:</p>
  
  <pre><code>@{
      var initValue = @Html.Raw(new JavaScriptSerializer().Serialize(Model));
      @Html.Hidden("initial-namings-data", initValue.ToString());
  }
  </code></pre>
  
  <p>It gives me error:</p>
  
  <pre><code>'System.Web.Mvc.HtmlHelper' has no applicable method named 'Hidden' but appears to have an extension method by that name. Extension methods cannot be dynamically dispatched. Consider casting the dynamic arguments or calling the extension method without the extension method syntax.
  </code></pre>
  
  <p>How can I fix it? Thanks.</p>