Try our conversational search powered by Generative AI!

SqlServerMembershipProvider createUser

Vote:
 

Hi,

I want to programmatically create a user, my site is using the SqlServerMembershipProvider does anyone have any guidance?

Thanks a lot

#31552
Aug 03, 2009 12:41
Vote:
 

If you call Membership.CreateUser your configured default provider will be used. If you are using the multiplexing provider, I think (I don't know for sure) that it will use the first provider (provider1). I don't know what will happen if that provider does not have the Create capability.

If you want to use a specific membership provider, get it by the Membership.Providers[providerName] indexer. Then call the provider's CreateUser method.

#31553
Edited, Aug 03, 2009 12:54
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.