SHARE
TWEET

Untitled

a guest Jan 16th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class MemberController : Controller
  2. {
  3.     public ActionResult Index()
  4.     {
  5.         var users = Membership.GetAllUsers();
  6.         return View(users);
  7.     }
  8.  
  9. }
  10.    
  11. <ul>
  12.     @foreach (var item in Model)
  13.     {
  14.         <li>@Html.DisplayFor(model => model[item.ToString()].UserName)</li>
  15.     }
  16. </ul>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top