Reading membership section from web.config

前端 未结 3 1171
再見小時候
再見小時候 2021-01-12 23:52

I have created a custom MembershipProvider class, so far so good, however, I am not sure how to read the configuration settings from the web.config file.

I tried to

3条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-13 00:38

    As this is set as your default provider it should be enough to:

    int i = Membership.MinRequiredPasswordLength;
    

    And that would return an int specifying the minimum required password length.

提交回复
热议问题