In ASP.Net 2.0 Login controls if you want to have your own database for login info how do you do that?

Showing Answers 1 - 6 of 6 Answers

prudhviram

  • Sep 13th, 2006
 

Create Table User with fields (UserID Primary Key, UserName,Password),Roles(RoleID Primary Key,RoleName) and UserRoles(id Primary Key, UserID Foreigh Key,RoleID Foreign Key).Populate the above tables with data. You can authenticate users based on roles from now by simply configuring web.config file.

  Was this answer useful?  Yes

Saurin Khamar

  • Oct 28th, 2006
 

If your data structure is complex then you can implement MembershipProvider and RoleProvider for that and implement relevant methods.

  Was this answer useful?  Yes

Muthuraman

  • Nov 2nd, 2006
 

you can run a command "aspnet_regsql" from visual studio 2005 command prompt and configuer your own custom data base in sqlserver machine and change the web.config file settings .

  Was this answer useful?  Yes

Raj

  • Dec 9th, 2006
 

Actually running aspnet_regsql on the desired DB and then using the default SQLMembership and SQLRole provider can suffice your requirement. If you dont plan to extend this feature, you dont need to author you own providers.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions