How can i create new users without utilizing the create user wizar

How can i create new users without utilizing the create user wizar

am 29.12.2007 19:34:00 von prady

Hi,
Is it possible for me to create new users without using the wizard? I am
using a custom membership as i want to capture more data other than the ones
which are available in the wizard. Is it possible for me to use the custom
membeship create user method? If yes how can i call it ? What should i be
giving the button_click event of my webpage where i capture the data?
Thanks in advance
Prady

Re: How can i create new users without utilizing the create user wizar

am 29.12.2007 20:48:58 von Ian Semmel

You can add your own functions to your custom membership provider class.

If your custom membership provider is say MyCustomProvider, you can get a
reference to that by

MyCustomProvider mcp = (MyCustomProvider) Membership.Provider;

You can then call mcp.DoMyCreateUser(...) etc.

> -----Original Message-----
> From: prady [mailto:prady@discussions.microsoft.com]
> Posted At: Sunday, 30 December 2007 4:34 AM
> Posted To: microsoft.public.dotnet.framework.aspnet
> Conversation: How can i create new users without utilizing the create
> user wizar
> Subject: How can i create new users without utilizing the create user
> wizar
>
> Hi,
> Is it possible for me to create new users without using the wizard? I
> am
> using a custom membership as i want to capture more data other than the
> ones
> which are available in the wizard. Is it possible for me to use the
> custom
> membeship create user method? If yes how can i call it ? What should i
> be
> giving the button_click event of my webpage where i capture the data?
> Thanks in advance
> Prady

Re: How can i create new users without utilizing the create user

am 29.12.2007 23:46:20 von Phil H

On 29 Dec, 19:48, "Ian Semmel" wrote:
> You can add your own functions to your custom membership provider class.
>
> If your custom membership provider is say MyCustomProvider, you can get a
> reference to that by
>
> =A0 MyCustomProvider mcp =3D (MyCustomProvider) Membership.Provider;
>
> You can then call mcp.DoMyCreateUser(...) etc.
>
>
>
> > -----Original Message-----
> > From: prady [mailto:pr...@discussions.microsoft.com]
> > Posted At: Sunday, 30 December 2007 4:34 AM
> > Posted To: microsoft.public.dotnet.framework.aspnet
> > Conversation: How can i create new users without utilizing the create
> > user wizar
> > Subject: How can i create new users without utilizing the create user
> > wizar
>
> > Hi,
> > Is it possible for me to create new users without using the wizard? I
> > am
> > using a custom membership as i want to capture more data other than the
> > ones
> > which are available in the wizard. Is it possible for me to use the
> > custom
> > membeship create user method? If yes how can i call it ? What should i
> > be
> > giving the button_click event of my webpage where i capture the data?
> > Thanks in advance
> > Prady- Hide quoted text -
>
> - Show quoted text -

A custom membership provider has to impement the interface
requirements of a standard membership provider if it is to be used
transparently. If you need to pass more information than is specified
by the standard Membeship.Createuser() method then you will have to
write code for a separate function with the required parameters and
call it explicitly.

Does that make any sense?