title: ASP.NET Membership - Need to add custom fields to admin screens
body: <p>I need to add a Company Name field that is associated with the logins. Later on I need to incorporate that into my existing admin screens for reporting.</p>
  
  <p>I just can't figure out how to get this done. I have tried the add a column to the Membership table and modifying the stored procs but the column will not show up.</p>
  
  <p>Here is the code of my admin page that I need to modify.</p>
  
  <pre><code>&lt;%@ Page Language="C#" MasterPageFile="~/admin.master" %&gt;
  &lt;%@ Register TagPrefix="dc" TagName="alphalinks" Src="~/alphalinks.ascx" %&gt;
  
  &lt;script runat="server"&gt;
      private void Page_PreRender()
      {
          if (Alphalinks.Letter == "All")
          {
              Users.DataSource = Membership.GetAllUsers();
          }
          else
          {
              Users.DataSource = Membership.FindUsersByName(Alphalinks.Letter + "%");
  
          }
          Users.DataBind();
      }
  
  
  &lt;/script&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="c" Runat="Server"&gt;
  
  &lt;!-- #include file="_nav.aspx --&gt;
  
  &lt;table class="webparts"&gt;
  &lt;tr&gt;
      &lt;th&gt;Users by Name&lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td class="details" valign="top"&gt;
  
  &lt;!-- #include file="_nav3.aspx --&gt;
  
  
  User Name filter:&amp;nbsp;&amp;nbsp;&amp;nbsp;
  &lt;dc:alphalinks runat="server" ID="Alphalinks" /&gt;
  
  &lt;br /&gt;
      &lt;br /&gt;
  
  &lt;asp:GridView runat="server" ID="Users" AutoGenerateColumns="false"
      CssClass="list" AlternatingRowStyle-CssClass="odd" GridLines="none"
      &gt;
  &lt;Columns&gt;
      &lt;asp:TemplateField&gt;
          &lt;HeaderTemplate&gt;User Name&lt;/HeaderTemplate&gt;
          &lt;ItemTemplate&gt;
          &lt;a href="edit_user.aspx?username=&lt;%# Eval("UserName") %&gt;"&gt;&lt;%# Eval("UserName") %&gt;&lt;/a&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:BoundField DataField="email" HeaderText="Email" /&gt;
  
      &lt;asp:BoundField DataField="comment" HeaderText="Comments" /&gt;
      &lt;asp:BoundField DataField="creationdate" HeaderText="Creation Date" /&gt;
      &lt;asp:BoundField DataField="lastlogindate" HeaderText="Last Login Date" /&gt;
      &lt;asp:BoundField DataField="lastactivitydate" HeaderText="Last Activity Date" /&gt;
      &lt;asp:BoundField DataField="isapproved" HeaderText="Is Active" /&gt;
      &lt;asp:BoundField DataField="isonline" HeaderText="Is Online" /&gt;
      &lt;asp:BoundField DataField="islockedout" HeaderText="Is Locked Out" /&gt;
  &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  
  &lt;/td&gt;
  
  &lt;/tr&gt;&lt;/table&gt;
  
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>I appreciate any help on this please.</p>
  
  <p>Thank you,</p>
  
  <p>Steve</p>