I am getting a list of my users using the below code:
Here is my view:
@model System.Web.Security.MembershipUserCollection
@{
ViewBag.Title = "ManageProfile";
}
<div class ="hero-unit">
<h2>ManageProfile</h2>
<ul>
@foreach (MembershipUser user in Model)
{<li>@user.UserName</li>}
</ul>
</div>
Here is my controller:
public ActionResult ManageProfile()
{
var users = Membership.GetAllUsers();
return View(users);
}
I would prefer that I be able to select the user from a dropdown list. How do I modify my code to yield a dropdown list? (my goal is to be able to select the user from the dropdown list and change details of that user's profile)