In my .net application web.config file, under the system.web section,
<system.web>
<membership configSource="membership.config" />
</system.web>
and in my membership.config file:
<?xml version="1.0" encoding="utf-8"?>
<membership defaultProvider="MembershipProvider">
<add applicationName="xxx"
testing="3" />
</providers>
</membership>
In my application code, how do I get the value for “testing”?
If you use build-in SqlMembershipProvider:
If you implement your own custom membership provider, you can get the value from Initialize method
E.g:
Your configuration should looks like following: