c# - Asp.net: How do i add extra user details on Membership database? -
i new membership stuff on asp.net. if need create new user parameter e.g firstname. should create new table parameters?
if not using createuserwizard create user, use membership.createuser create user?
please help
after getting additional user information, such first name can save information custom database table.
a valid point might storing information in profile. when running through wizard, user not authenticated yet, cannot store information profile, available authenticated users only. therefore, either have store in custom database table or include way user edit profile after registration process.
dbo.aspnet_profile
table, inside aspnetdb
database, used default storing profiles of users. so, in case prefer store in profile, after creating user, load profile of newly created user , set custom info gathered.
profilecommon p = profile.getprofile(strusername); //update field , save p.firstname= txtfirstname.text; p.save();
question 2::
if not using createuserwizard create user, use membership.createuser create user??
yes, it's not necessary use createuserwizard
create user. can collect basic info like: username, password using 2 textboxes , create user using various overloaded versions of membership.createuser()
method. check msdn. also, link created user basic info.
Comments
Post a Comment