hot get selected item from a dropdownlist and use it as a route value in mvc3
I have a list in my model:
    public class DropDownItemModel 
    {
        public int Versions {get; set;}
        public string name { get; set; }
    }//dropdown lists
In the controller I have:
            NameModel um = new NameModel();
            ViewData["Versions"] = new SelectList(um.Versions.Select(v =>v.VersionID));
            ViewData["Name"] = new SelectList(um.Name.Select(v => v.Name));

            return View(um);
In the view I have:

@Html.DropDownList("Versions", (SelectList)ViewData["Versions"]); // need selected value
 <input type="submit" value="Filter" />
  @Html.Action("versionList", "version", ?)//place selection as route value
hot get selected item from a dropdownlist and use it as a route value in mvc3
===

I have a list in my model:
    public class DropDownItemModel 
    {
        public int Versions {get; set;}
        public string name { get; set; }
    }//dropdown lists
In the controller I have:
            NameModel um = new NameModel();
            ViewData["Versions"] = new SelectList(um.Versions.Select(v =>v.VersionID));
            ViewData["Name"] = new SelectList(um.Name.Select(v => v.Name));

            return View(um);
In the view I have:

@Html.DropDownList("Versions", (SelectList)ViewData["Versions"]); // need selected value
 <input type="submit" value="Filter" />
  @Html.Action("versionList", "version", ?)//place selection as route value