c# - How to dynamically create drop down lists and enumerate them at view? asp.net MVC 5 -
i want create drop down list in foreach loop, , send list of drop downs view , enumerate them there.
how can accomplish that?
view bags hold one, instance have 3 location drop down lists, want loop through country, region, city, , create drop down each , send them view.
note: it's not 3 locations, locations added dynamically pointer parent id, have list of parent locations final selected location (in example have city, , want backtrack country while creating appropriate drop down lists)
i'm using asp.net mvc 5
thanks comments, solved issue using ajax track parent ids instead of using multiple drop downs , sending them view.
Comments
Post a Comment