title: mvc passing more than one parameters to partial view
body: <p>I would like to pass more than one parameter to the partial view.  With the following </p>
  
  <pre><code> &lt;% Html.RenderPartial("Details", Model.test, new ViewDataDictionary { { "labelName", "Values1" }, {"header", "Header1"}, {"header2", "Header2"}}); %&gt; 
  </code></pre>
  
  <p>code, I am having error message </p>
  
  <blockquote>
    <p>) missing.</p>
  </blockquote>
  
  <p>What is wrong? </p>
  
  <hr>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;IEnumerable&lt;MvcUI.Models.Label&gt;&gt;" %&gt;
  
   &lt;%var label = ViewData["labelName"];%&gt;
   &lt;%int count = 0; %&gt;
  
  
              &lt;%if (Model!=null) {%&gt;           
                 &lt;% foreach (var model in Model){ %&gt;     
  
  
                      &lt;%if (!String.IsNullOrEmpty(model.Name))                   
                     {%&gt;
                      &lt;li&gt;
                            &lt;%: Html.Hidden((label)+".Index", count.ToString())%&gt;
                            &lt;%: Html.TextBox((label)+"[" + (count) + "].Name", model.Name, new { Style = "width:280px" })%&gt;
                            &lt;%: Html.Hidden((label)+"[" + (count++) + "].ID", model.ID, new { Style = "width:280px" })%&gt;
                          &lt;input type="button" value = "Delete"/&gt;
                      &lt;/li&gt;
                      &lt;%}
                       %&gt;
                   &lt;%} %&gt;
  
                  &lt;% } %&gt; 
  </code></pre>