ASP.Net set Membership.Provider programatically -


I want to know whether to set the default subscription provider (subscription provider) through a configuration file via code Impossible .

This is not a direct approach to your question. Instead, implement a custom subscription provider, and use the example class to inject the desire class (for example) when running

For example,

  Public override subscription user gateuser (string username, bool user ifline) {var user = IoC.Resolve & lt; IUserService & gt; (). GetUserByU name (user name, userIsOnline); }    

Comments