I want to create drop down list in a foreach loop, and send list of those drop downs to view and enumerate them there.
how can i accomplish that?
View bags only hold one, like for instance i have 3 location drop down lists, i want to loop through country, region, city, and create drop down for each and send them to view.
note: it's not always 3 locations, locations are added dynamically with pointer to parent Id, so i have a list of parent locations for the final selected location (in this example i have city, and i want to backtrack to country while creating the appropriate drop down lists)
i'm using asp.net MVC 5