GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 100 of 155    Print  
In ASP.Net 2.0 Login controls if you want to have your own database for login info how do you do that?

  
Total Answers and Comments: 4 Last Update: December 09, 2006     Asked by: Ramanan 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 13, 2006 11:45:38   #1  
prudhviram Member Since: September 2006   Contribution: 11    

RE: In ASP.Net 2.0 Login controls if you want to have ...
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.
 
Is this answer useful? Yes | No
October 28, 2006 10:57:26   #2  
Saurin Khamar        

RE: In ASP.Net 2.0 Login controls if you want to have ...
If your data structure is complex then you can implement MembershipProvider and RoleProvider for that and implement relevant methods.
 
Is this answer useful? Yes | No
November 02, 2006 00:42:48   #3  
Muthuraman        

RE: In ASP.Net 2.0 Login controls if you want to have ...
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 .
 
Is this answer useful? Yes | No
December 09, 2006 00:56:16   #4  
Raj        

RE: In ASP.Net 2.0 Login controls if you want to have ...
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.
 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape