'In the controller Dim userModel = New IssueTracker.ClientUserProjectIssue() userModel.cTable = dbServer.ClientTables.Where(Function(x) x.userID = getuserID).ToList() userModel.proTable = dbServer.ProjectTypes.Where(Function(x) x.ProjectTypeID = 1).ToList() Return View(userModel) 'In the view 'Here I want to display a dropdownlist for each chosen ID @For Each test In Model.cTable @Html.DropDownList("ProjectTypeID", New SelectList(Model.proTable.Where(Function(x) x.ProjectTypeID = test.ProjectTypeID), "ProjectTypeID", "ProjectTypeName"), "Please Select") Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)