title: ASP.NET MVC Binding to a dictionary
body: <p>I'm trying to bind dictionary values within MVC.</p>
  
  <p>Within the action I have:</p>
  
  <pre><code>model.Params = new Dictionary&lt;string, string&gt;();
  
  model.Params.Add("Value1", "1");
  model.Params.Add("Value2", "2");
  model.Params.Add("Value3", "3");
  </code></pre>
  
  <p>and within the view I have:</p>
  
  <pre><code>@foreach (KeyValuePair&lt;string, string&gt; kvp in Model.Params)
  { 
  &lt;tr&gt;
    &lt;td&gt;
      &lt;input type="hidden" name="Params.Key" value="@kvp.Key" /&gt;
      @Html.TextBox("Params[" + kvp.Key + "]")
    &lt;/td&gt;
  &lt;/tr&gt;
  }
  </code></pre>
  
  <p>But the view doesn't display the initial values, and when the form is submitted the <code>Params</code> property is null?</p>