Search code examples
asp.netasp.net-membershipasp.net-authentication

How to use ASP.Net membership with my own tables?


Usually, for using the ASP.Net membership APIs, I import the API's tables to my database and use it. But there is a lot of tables and fields that I don't want them. I just want to have my USERS table that have three fields (like; UserId, Username, Password. Just this). So how can I connect this API to my own table?

Thanks in advance.


Solution

  • You'd have to implement your own custom MembershipProvider.

    See: http://msdn.microsoft.com/en-us/library/f1kyba5e.aspx