How to view the users in web site administration tool (aspnetdb.mdf) on a page once an admin is logged in?

Posted on 2009-04-30
Last Modified: 2013-12-25

I'm sort of new to, and I was able to learn how to use the web admin tool 3.5 provides. But what I'm not sure how to do is actually view the users of that table from aspnetdb.mdf on a web form page, and I'm not sure how while still using this tool. Thanks for your help.

Question by:weihk
    LVL 69

    Expert Comment

    by:Éric Moreau
    LVL 41

    Accepted Solution

    Website Admin Tool uses Membership and Roles API for this purpose.
    Check this:
    Below is the sample code:
    MembershipUserCollection users = Membership.GetAllUsers();
            GridView1.DataSource = users;
    ///Or Something like this
            foreach (MembershipUser user in users)
     foreach (MembershipUser user in users)
                string username = user.UserName;

    Open in new window


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now