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
here is the solution in code :
MembershipSection membershipSection = (MembershipSection)WebConfigurationManager.GetSection("system.web/membership");
string defaultProvider = membershipSection.DefaultProvider;
ProviderSettings providerSettings = membershipSection.Providers[defaultProvider];
string connectionStringName = providerSettings.Parameters["connectionStringName"];
string connectionUsername = providerSettings.Parameters["connectionUsername"];
string connectionPassword = providerSettings.Parameters["connectionPassword"];
string connectionString = WebConfigurationManager.ConnectionStrings[connectionStringName].ConnectionString;