How to get asp.net default provider name?

How can I get asp.net default provider name from code (C #)?

+3
source share
2 answers

Use Membership.Provider.Name, this will return the name used in the web.configfile

EDIT: only works if I installed defaultProviderin the sectionmembership

+3
source

You can always access the web.config file using WebConfigurationManager.GetSection

+1
source

All Articles