How to get the default asp.net membership provider name?
How 开发者_如何学JAVAcan I get the default asp.net membership provider name from code (C#)?
Use Membership.Provider.Name
this will return the name used in web.config
file
EDIT: Works only in case I've set a defaultProvider
in the membership
section
You can always access to web.config file using
WebConfigurationManager.GetSection
精彩评论