Re: Choose Membership Provider at Run-time
am 14.04.2008 17:12:25 von NoSpamMgbworld
You will have to explicitly name the provider name:
Membership.Providers[providerName].Method();
Example (Update User):
//Default
Membership.UpdateUser(name);
//Explicit
Membership.Providers[providerName].UpdateUser(user.Membershi pUser);
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss
or just read it:
http://gregorybeamer.spaces.live.com/
*************************************************
| Think outside the box!
|
*************************************************
"FerrisUML" wrote in message
news:11d3a211-01b2-417e-bf9d-4904e6be6e09@f36g2000hsa.google groups.com...
>I have two membership providers listed in my web.config, one for SQL
> and the other for AD. How do I switch between them at run-time so
> that my login page can validate against either source?