title: populating items into dropdownlist instead of table in mvc 3
body: <p>Currently i am populating the table with the items using for each , below is the code :
  Updated: _FilterSpecsBox.cshtml</p>
  
  <pre><code>         @model CatalogPagingFilteringModel.SpecificationFilterModel
             @{
           var renderedAttributeNames = new List&lt;string&gt;();
            }  
         &lt;div class="product-spec-filter"&gt;
         @* &lt;div class="title"&gt;
              @T("Filtering.SpecificationFilter")
          &lt;/div&gt;*@
          @*&lt;div class="clear"&gt;
          &lt;/div&gt;*@
          @if (Model.NotFilteredItems.Count &gt; 0)
          {
              &lt;div&gt;
                  &lt;table class="filter"&gt;
                      @foreach (var item in Model.NotFilteredItems)
                      {
                          if (!renderedAttributeNames.Contains(item.SpecificationAttributeName))
                          {
                              renderedAttributeNames.Add(item.SpecificationAttributeName);
                              &lt;tr class="group"&gt;
                                  &lt;td&gt;
                                      @item.SpecificationAttributeName
                                  &lt;/td&gt;
                              &lt;/tr&gt;
                          }
                          &lt;tr class="item"&gt;
                              &lt;td&gt;
                                  **&lt;a href="@item.FilterUrl"&gt;@item.SpecificationAttributeOptionName&lt;/a&gt;**
                              &lt;/td&gt;
                          &lt;/tr&gt;
                      }
                  &lt;/table&gt;
              &lt;/div&gt;
          }
          @if (Model.AlreadyFilteredItems.Count &gt; 0)
          {
              &lt;div&gt;
                  &lt;div class="title"&gt;
                      @T("Filtering.SpecificationFilter.CurrentlyFilteredBy")
                  &lt;/div&gt;
                  &lt;table class="filter"&gt;
                      @foreach (var item in Model.AlreadyFilteredItems)
                      {
                          &lt;tr class="filtereditem"&gt;
                              &lt;td&gt;
                                  &lt;b&gt;@(item.SpecificationAttributeName):&lt;/b&gt; @item.SpecificationAttributeOptionName
                              &lt;/td&gt;
                          &lt;/tr&gt;
                      }
                  &lt;/table&gt;
              &lt;/div&gt;
              &lt;div class="remove-filter"&gt;
                  &lt;a href="@Model.RemoveFilterUrl" class="remove-product-spec-filter"&gt;@T("Filtering.SpecificationFilter.Remove")&lt;/a&gt;
              &lt;/div&gt;
          }
      &lt;/div&gt;
  </code></pre>
  
  <p>I want to populate the @item.FilterUrl in the dropdownlist , can anyone provide any assistance of how to achieve this.</p>
  
  <p>Updated: _filter.cshtml</p>
  
  <pre><code> @*filtering*@
  @if (Model.PagingFilteringContext.PriceRangeFilter.Enabled ||
      Model.PagingFilteringContext.SpecificationFilter.Enabled)
  {
      &lt;div class="product-filters"&gt;
          &lt;div class="filter-title"&gt;
              &lt;span&gt;Filter Products By Analytes&lt;/span&gt;
          &lt;/div&gt;
       @*   &lt;div class="filter-item"&gt;
              @Html.Partial("_FilterPriceBox", Model.PagingFilteringContext.PriceRangeFilter, new ViewDataDictionary())
          &lt;/div&gt;*@
          &lt;div class="filter-item"&gt;
              @Html.Partial("_FilterSpecsBox", Model.PagingFilteringContext.SpecificationFilter, new ViewDataDictionary())
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div class="clear"&gt;
      &lt;/div&gt;
  }
  </code></pre>