Create user by code

Create user by code

am 12.04.2008 01:56:59 von John Devlon

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

Re: Create user by code

am 12.04.2008 04:15:44 von Jonathan Wood

Just call Membership.CreateUser().

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

"John Devlon" wrote in message
news:kVSLj.6181$VC1.2898@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
>

Re: Create user by code

am 17.04.2008 03:03:01 von John Devlon

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" schreef in bericht
news:%23UGBhMEnIHA.3512@TK2MSFTNGP03.phx.gbl...
> Just call Membership.CreateUser().
>
> --
> Jonathan Wood
> SoftCircuits Programming
> http://www.softcircuits.com
>
> "John Devlon" wrote in message
> news:kVSLj.6181$VC1.2898@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
>>
>