SqlMembeshipProvider.Initialize name parameter

  • Thread starter Thread starter Harlan Messinger
  • Start date Start date
H

Harlan Messinger

I'm not understanding what the name parameter is for in the Initialize
method of the SqlMembershipProvider. It's supposed to be the name of the
provider instance to initialize. But this is an instance method of the
provider, so it should already know what provider it's initializing
without being told. Confusion here.
 
Harlan Messinger said:
I'm not understanding what the name parameter is for in the Initialize
method of the SqlMembershipProvider. It's supposed to be the name of the
provider instance to initialize. But this is an instance method of the
provider, so it should already know what provider it's initializing
without being told. Confusion here.

The bit that catches my eye in msdn is where it says "This method is not
intended to be used directly from your code".
I've used sqlmembership extensively and never actually needed to know about
this method.
Maybe your interest is more academic though.
 
Andy said:
The bit that catches my eye in msdn is where it says "This method is not
intended to be used directly from your code".
I've used sqlmembership extensively and never actually needed to know
about this method.
Maybe your interest is more academic though.

I do understand that part: you're supposed to implement it, but its the
membership framework that calls it, just as you do for event handlers
for form events. I've come across examples for that, but the examples
either ignore the name parameter or do something with it that doesn't
seem to make obvious sense.
 
I know the framework calls Initialize if you use the CreateUserWizard but is there a way to have the framework call it when you are doing a custom create user page?

Mike Snyder



Harlan Messinger wrote:

Andy O'Neill wrote:I do understand that part: you are supposed to implement
22-Mar-10

Andy O'Neill wrote

I do understand that part: you are supposed to implement it, but its th
membership framework that calls it, just as you do for event handler
for form events. I have come across examples for that, but the example
either ignore the name parameter or do something with it that does no
seem to make obvious sense.

Previous Posts In This Thread:

SqlMembeshipProvider.Initialize name parameter
I am not understanding what the name parameter is for in the Initializ
method of the SqlMembershipProvider. it is supposed to be the name of th
provider instance to initialize. But this is an instance method of th
provider, so it should already know what provider it is initializin
without being told. Confusion here.

The bit that catches my eye in msdn is where it says "This method is
The bit that catches my eye in msdn is where it says "This method is no
intended to be used directly from your code"
I have used sqlmembership extensively and never actually needed to know abou
this method
Maybe your interest is more academic though.

Andy O'Neill wrote:I do understand that part: you are supposed to implement
Andy O'Neill wrote

I do understand that part: you are supposed to implement it, but its th
membership framework that calls it, just as you do for event handler
for form events. I have come across examples for that, but the example
either ignore the name parameter or do something with it that does no
seem to make obvious sense.


Submitted via EggHeadCafe - Software Developer Portal of Choice
IIS 7.0 Extensionless UrlRewriting (Short urls)
http://www.eggheadcafe.com/tutorial...df-52898c6aa5d7/iis-70-extensionless-url.aspx
 
Back
Top