Home All Groups Group Topic Archive Search About
Author
3 May 2005 10:20 AM
Asp Hunter via DotNetMonster.com
Hello Everyone,

I am using the CreateUserWizard Control of ASP.NET 2.0 for user
registration, but i need some more fields, i found that this can be done by
adding a new step in the control, but i havn't found the way to use that
step, like how to use the data i.e. entered by the user and how to store
that in database.(AspNetDb.mdb i.e. made by the site admin tool)
have the coding to be done manualy or it will be managed by the control?


and also how can i save that data to mysql database instead of Access.
whether i have to code it manualy or not.

Thanks

Asp Hunter

Author
3 May 2005 1:11 PM
Brock Allen
The tables created by the Membership Provider are not meant to be extended.
If you want additional data associated with your user, then look into the
Profile feature of ASP.NET 2.0. As for the Wizard, you can adds more steps
to collect this additional data then handle the CreateUserWizard.CreatingUser
or CreateUserWizard.CreatedUser events to save the extra data to the Profile.
For MySql, I don't know of any MySqlMembership or MySqlProfile provider implementations,
but if you don't build one yourself, I'm sure someone else will soon.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> Hello Everyone,
>
> I am using the CreateUserWizard Control of ASP.NET 2.0 for user
> registration, but i need some more fields, i found that this can be
> done by
> adding a new step in the control, but i havn't found the way to use
> that
> step, like how to use the data i.e. entered by the user and how to
> store
> that in database.(AspNetDb.mdb i.e. made by the site admin tool)
> have the coding to be done manualy or it will be managed by the
> control?
> and also how can i save that data to mysql database instead of Access.
> whether i have to code it manualy or not.
>
> Thanks
>
> Asp Hunter
>
Author
4 May 2005 5:59 AM
Asp Hunter via DotNetMonster.com
Hi Brock,

Thanks for the information.

Can you please tell me how I can implement the MySql Membership Provider?
and please let me know how I can use the Profile Feature of ASP.NET 2.0?

Thanks again,

--
Message posted via http://www.dotnetmonster.com
Author
4 May 2005 2:56 PM
Brock Allen
> and please let me know how I can use the Profile Feature of
> ASP.NET 2.0?

Profiles are covered here:

http://beta.asp.net/QUICKSTART/aspnet/doc/profile/default.aspx

> Can you please tell me how I can implement the MySql Membership
> Provider?

You'll first need a MySqlManaged provider -- this is essentially the ADO.NET
API to talk to MySql. I think there are some out there and only cost like
50$ (US). You'll then need to derive a class from MembershipProvider and
implement all of the authentication goo:

http://msdn2.microsoft.com/library/sfka4yf8(en-us,vs.80).aspx

I haven't seen any implementation of this yet.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Author
4 May 2005 1:02 PM
mplotkin
did you ever get an answer to this question?
I am looking for the same thing.

I figured if I am going to be using their login system I need to add my
tables to that DB. on the rest of my pages this works great. However I
need a display name for my users, and I need to be able to include it
in my regular queries.

I also figured out how to add controls to the wizard as you found out.
Now how can we bind them to the data?
I cant even figure out how to access those controls in the CreatedUser
event.

Thank you very much
Author
5 May 2005 6:25 AM
Asp Hunter via DotNetMonster.com
Hi,

I had found something, please check whether i am currect or whether i have
solved something or not.

We should Review the Problems:

1.We need the solution for the CreateUserWizard Control.

  What i found is that we can add steps in that control by selecting the
add/remove steps option on right Click Menu. and then we can edit the
Template to add our controls of the Step that we have recently added.

2.How to use those Controls

  What i found is that we can refer those controls just as we refer any
other control on the web form.
  i.e. if we have added a Textbox on the Step 2 of our createuserwizard
control with a name TxtName then we can use that control
       Msgbox(TxtName.Text).

3.What to do with that data:

  we can define a Profile in our website by Website admin Tool found in
Asp.Net 2.0. This profile can be use to save additional information about
the user like the detailed contact information etc.

and then we can use that as follow

  Profile.<Profile Name>.<PropertyName>=TxtName.Text
  ---all other fields
  Profile.Save()

This will save that information in the profile of that user, and this
profile can be used anywhere in the website after user's login.

4. MySql

  till now i am searching something for this.
  i think we can do that by making a class that is derived from the
MembershipProvider Class, and then by overriding all the members of the
MemberShipProvider.
But I still want to know whether we have to use Sql Querys and Connections
and Readers and adapter to connect with database , retrive information from
the database etc. and what other changes we have to do in the web.config
etc.

I mean i don't think that we have to use it like a general Database Program.

If anybody has something on this than please tell me.

And also please let me know whether i am doing it right or not.

Asp Hunter
Author
9 May 2005 6:48 AM
Asp Hunter via DotNetMonster.com
Hello,

Anyone found something?please let me know.

I am searching for the solutions.

Please

Asp hunter

--
Message posted via http://www.dotnetmonster.com