Creating Users Manually

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • BobLaughland

    Creating Users Manually

    Hi There,

    I am creating an ASP .NET 2.0 web page using c#.

    I am using the 'CreateUserWiza rd' control to add users to my site. Just
    wondering whether there is a programatic way to do this.

    E.G. I want to create a spreadsheet with 50 users details on it, and
    then want to load that in and create the users in the database.

    The uncertainty I have at the moment is actually taking the records and
    putting them into the database. Is there a method somewhere as part of
    the 'CreateUserWiza rd' which will take the persons details and insert
    it into the database. I can't just insert all the data in the database
    because the 'CreateUserWiza rd' automatically adds stuff to a bunch of
    tables, and also encrypts the password and all that.

    One other alternative is to programatically set the fields to add the
    users one at a time into the 'CreateUserWiza rd' control I have on my
    page, and then force it to click the button. My question is how can I
    force it to click the button?

    Thanks,

    Peter.

  • brians[MCSD]

    #2
    RE: Creating Users Manually

    Hello Peter,

    Anything the login controls or the webadmin tool can do, you can do
    programatically . They are wrappers for the api. You can create a user
    programatically using the Membership.Crea teUser() method. See the docs for
    more info on the Membership classes in general.

    --
    enjoy - brians



    "BobLaughla nd" wrote:
    [color=blue]
    > Hi There,
    >
    > I am creating an ASP .NET 2.0 web page using c#.
    >
    > I am using the 'CreateUserWiza rd' control to add users to my site. Just
    > wondering whether there is a programatic way to do this.
    >
    > E.G. I want to create a spreadsheet with 50 users details on it, and
    > then want to load that in and create the users in the database.
    >
    > The uncertainty I have at the moment is actually taking the records and
    > putting them into the database. Is there a method somewhere as part of
    > the 'CreateUserWiza rd' which will take the persons details and insert
    > it into the database. I can't just insert all the data in the database
    > because the 'CreateUserWiza rd' automatically adds stuff to a bunch of
    > tables, and also encrypts the password and all that.
    >
    > One other alternative is to programatically set the fields to add the
    > users one at a time into the 'CreateUserWiza rd' control I have on my
    > page, and then force it to click the button. My question is how can I
    > force it to click the button?
    >
    > Thanks,
    >
    > Peter.
    >
    >[/color]

    Comment

    Working...