locked
Read aspnetdb.mdf Membership file RRS feed

  • Question

  • User-1529183067 posted

    I need to create an program to read selected values from the Membership aspnetdb.mdf file. I need to edit the Activity field in an external program so I can Activate the user. I did this in Delphi about six years ago and used the program for four years. I know it can be done. Extensive Internet research has not been helpful.

    Sunday, November 16, 2014 5:00 PM

Answers

  • User-1151753377 posted

    Hi MervNorton,

    Welcome to the ASP.NET forum.

    According to your description, you’d like to read selected values form the Membership aspnetdb.mdf file so that you could active user.

    As far as I know, I think you could use Membership.GetUser() method to get all users in the database as a MembershipUser . You could also use following LINQ Query to get a list of user names.

    var users = from user in Membership.GetUsers()
                     orderby user.UserName
                     select user.UserName
    

    And then you could make some demos about these Users.

     

     

    Best Regards,

    Summer

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, November 17, 2014 2:39 AM