title: Display User Profile information from Membership .Net using MVC?
body: <p>I am currently have a bunch of users sitting in a Membership Database and I want to be able to create a page in an MVC App that will be designed to pull back all the user information and display it on the page, I have created the solution below however I want be able to show the data in a Grid View instead of a list:</p>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult Index()
          {
              var systemUsers = Membership.GetAllUsers();
              return View(systemUsers);
          }
  </code></pre>
  
  <p>View:</p>
  
  <pre><code> &lt;ul&gt;
          &lt;%foreach (MembershipUser user in Model){ %&gt;
  
          &lt;li&gt;&lt;%=user.UserName %&gt;&lt;/li&gt;
  
          &lt;% }%&gt;
     &lt;/ul&gt;
  </code></pre>
  
  <p>Can someone please tell me how I can get the users data and display it in a Grid View on the View? I was thinking that I could have a model that stores the data in which is then passed to the view and this model could be updated by the controller? But im unsure which datatype could be used to store the users data and then passed to the Grid View?</p>
  
  <p>Thanks :-)</p>