title: Asp.Net mvc 2 , DropDownListFor and Editor Template . Selected Value dosen't work
body: <p>I Have 2 views. ProductForm.aspx and Category.ascx.
  CategoryForm is a Partial View. I Call the Category.ascx from the ProductForm with EditorFor(model => model.Category) . In this partial view, there is a DropdownlistFor with all the category. The problem is the Selected Value for a specific Product Category. The selected value dosen't work.</p>
  
  <p>Why ?</p>
  
  <p><br /> 
  Here is what I have in my ProductForm<br /></p>
  
  <pre><code>&lt;div class="editor"&gt;      
      &lt;div class="editor-label"&gt;
          &lt;%: Html.LabelFor(model =&gt; model.ProductInfo.ProductName) %&gt;
      &lt;/div&gt;
  
      &lt;div class="editor-field"&gt;
          &lt;%: Html.TextBoxFor(model =&gt; model.ProductInfo.ProductName)%&gt;
          &lt;%: Html.ValidationMessageFor(model =&gt; model.ProductInfo.ProductName)%&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;%: Html.EditorFor(model =&gt; model.ProductInfo.Category, new { CategoryList = Model.CategoryList })%&gt;
  </code></pre>
  
  <p><br />
  In Category.ascx
  <br /></p>
  
  <pre><code>&lt;div class="editor-field"&gt;
     &lt;%:Html.DropDownListFor(model =&gt; model.CategoryID, (IEnumerable&lt;SelectListItem&gt;)ViewData["CategoryList"])%&gt;
  &lt;/div&gt;
  </code></pre>