Thursday, March 29, 2012

Login control, can I get more fields into it?

Hello All:

I have used the Create new user control, I want to add more fields and store them in the aspnet_Users table. I would love the standard Name, Address, City, Zip fields. I tried adding to the aspnet_User table in Database Explorer. I got the fields to show up in the explorer, but when I drop a SqlDataSource on a page I cant seem to get the fields I have added to show. AM I supposed to store these values in another table? It seems like data that should go in a user table. I just want simple address fileds. Its very fustrating.

Sincerly,

Very Confused Newbie

I don't really know if there is another way to do it, and there probably is, but I created a wizard control for new users to create an account. For the additional columns for address, e-mail information, etc, I created a separate table in my database called UserAdditional where the primary key is the user's id. I then created the SQLDataSource to point to that database for those additional fields.

I hope this helps.


Check below two links

Gathering Custom User Registration Information

Customizing the CreateUserWizard Control

HC


Hey Haissam thanks alot those sites were very helpful. You rock!

0 comments:

Post a Comment