开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜