How to get all users profile in a GridView in asp.net

Get all users profile in a GridView
GetAllUsersProfile.aspx

<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        GridView1.DataSource = ProfileManager.GetAllProfiles(ProfileAuthenticationOption.Authenticated);
        GridView1.DataBind();
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>How to get all users profile in a GridView</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Green">asp.net profile example: GridView All Users Profile</h2>
        <asp:GridView 
             ID="GridView1" 
             runat="server"
             AutoGenerateColumns="true"
             AllowPaging="true"
             BackColor="DodgerBlue"
             ForeColor="AliceBlue"
             HeaderStyle-BackColor="DarkBlue"
             HeaderStyle-ForeColor="AliceBlue"
             Font-Italic="true"
             GridLines="Both"
             HeaderStyle-Font-Italic="false"
             BorderColor="LightBlue"
             >
        </asp:GridView>
        <br />
        <asp:Button 
             ID="Button1" 
             runat="server" 
             Font-Bold="true"
             ForeColor="SeaGreen" 
             Text="Populate GridView" 
             OnClick="Button1_Click"
             />
    </div>
    </form>
</body>
</html>
More asp.net examples