Create user by code

Hi,

Does anyone know how to create a new user by code?

Using the default control works great but I need a solution using code...
something in vb.net not c#

Thanx

John
John Devlon [ Sa, 12 April 2008 01:56 ] [ ID #1941083 ]

Re: Create user by code

Just call Membership.CreateUser().

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"John Devlon" <Johndevlon [at] hotmail.com> wrote in message
news:kVSLj.6181$VC1.2898 [at] newsfe10.ams2...
> Hi,
>
> Does anyone know how to create a new user by code?
>
> Using the default control works great but I need a solution using code...
> something in vb.net not c#
>
> Thanx
>
> John
>
Jonathan Wood [ Sa, 12 April 2008 04:15 ] [ ID #1941087 ]

Re: Create user by code

Hi Jonathan,

Thanx, it works great.... your the best...

Do you know by any chance how to get the UserID from the user that has been
added ?

Thanx

John



"Jonathan Wood" <jwood [at] softcircuits.com> schreef in bericht
news:%23UGBhMEnIHA.3512 [at] TK2MSFTNGP03.phx.gbl...
> Just call Membership.CreateUser().
>
> --
> Jonathan Wood
> SoftCircuits Programming
> http://www.softcircuits.com
>
> "John Devlon" <Johndevlon [at] hotmail.com> wrote in message
> news:kVSLj.6181$VC1.2898 [at] newsfe10.ams2...
>> Hi,
>>
>> Does anyone know how to create a new user by code?
>>
>> Using the default control works great but I need a solution using code...
>> something in vb.net not c#
>>
>> Thanx
>>
>> John
>>
>
John Devlon [ Do, 17 April 2008 03:03 ] [ ID #1944296 ]
Microsoft » microsoft.public.dotnet.framework.aspnet » Create user by code

Vorheriges Thema: can not get AJAX to work on sever, please help
Nächstes Thema: FormView Insert Session value