Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MemberController : Controller
- {
- public ActionResult Index()
- {
- var users = Membership.GetAllUsers();
- return View(users);
- }
- }
- <ul>
- @foreach (var item in Model)
- {
- <li>@Html.DisplayFor(model => model[item.ToString()].UserName)</li>
- }
- </ul>
Add Comment
Please, Sign In to add comment