Author: djs25uk | Posted on: 7/27/2010 12:29:43 PM | Views : 477

Dear All
I've been using the following:
Dim user As MembershipUser = Membership.GetUser() But now I have more than one membership provider in my web.config file so I'd like to be able to set it programmatically at runtime. I changed the code to the following but it doesn't compile:
Dim user As MembershipUser = Membership.Providers.Item("SandboxProvider").GetUser() The error that I'm getting in Visual Studio is "Overload resolution failed because no accessible 'GetUser' accepts this number of arguments". I don't understand why it's not working.
Please can you help?
Many thanks
Daniel

 

 
 
 
...

Go to the complete details ...