As far as I understood, based upon the the selected member name from first dropdownlist you want to generate you want to create dropdownlist(or whatever) with addresses.
If you want to achieve this, you have to use partial view. Give your firstdropdownlist an ID and upon the dropdownlist being selected, load partial view using jquery where you load the addresses. For example in your view you could do something like this
@Html.DropDownList("MemberID", String.Empty, new{id = "MembersName")
<div id="partialDiv"></div>
and you could fill up the partial div using jquery
<script>
$("#MembersName").on("change", function() {
var memberId = $(this).val();
$.get('@Url.Action("GetMemberAddress", "Module")', { Id: memberId }, function(result) {
$("#partialDiv").html(result);
});
//uncomment following section to check if the partial view is working properly
/*.done(function() { alert("done"); })
.fail(function() { alert("fail"); })
.always(function() { alert("completed"); });*/
});
</script>
You should add a function called GetMemberAddress
in your controller which gets called when dropdownlist item is selected, it is done with following code in above script.
$.get('@Url.Action("GetMemberAddress", "Module")', { Id: memberId },
I'm just providing a technique, to solve your issue. you have to use it based upon the result you want