How can I get asp.net default provider name from code (C #)?
Use Membership.Provider.Name, this will return the name used in the web.configfile
Membership.Provider.Name
web.config
EDIT: only works if I installed defaultProviderin the sectionmembership
defaultProvider
membership
You can always access the web.config file using WebConfigurationManager.GetSection
WebConfigurationManager.GetSection