T
thomas
Hello All,
How to change the default Membership Provider during the runtime?
I know I can reference any provider I want, e.g.: provider =
Membership.Providers["MyMembershipProvider"]
but the question is how to change the default one, so all those new, cool
controls can start using the one I want.
I can specify the provider for each of those controls, e.g.:
Login1.MembershipProvider =
Membership.Providers["DefaultMembershipProvider"].Name
but it seems like before this line in the Page_Load event handler gets
executes ASP.Net tries to initialize the default one, and since, the
connection string is not always valid, an exception occurs.
I guess, alternatively, I could change the connection string of the default
provider, but I do not know how to.
Any help highly appreciated.
Tomasz
How to change the default Membership Provider during the runtime?
I know I can reference any provider I want, e.g.: provider =
Membership.Providers["MyMembershipProvider"]
but the question is how to change the default one, so all those new, cool
controls can start using the one I want.
I can specify the provider for each of those controls, e.g.:
Login1.MembershipProvider =
Membership.Providers["DefaultMembershipProvider"].Name
but it seems like before this line in the Page_Load event handler gets
executes ASP.Net tries to initialize the default one, and since, the
connection string is not always valid, an exception occurs.
I guess, alternatively, I could change the connection string of the default
provider, but I do not know how to.
Any help highly appreciated.
Tomasz