Click here to Skip to main content
15,938,682 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
I am new to ASP.Net Application Development.
I was going through Authentication from a Book.I studied that Authentication modes can be 'forms','windows' and 'passport' and we can use built in Login controls from toolbox to use forms authentication.As soon as we run the page, automatically ASP.Net_mdf Database is created and all the authentication stuff like SignUp, Login, Anonymous access is taken care by ASP.Net Sql Membership provider.

I want to know can we go for our custom login controls if using forms authentication? what is the best approach? do we always have to talk to Sql Membership provider for authentication? Can we create our own database tables for usernames and passwords? In short what is the best approach and what are options available for creating a authentication page using forms mode?
Posted

1 solution

Yes,you can use any MembershipProvider and RoleProvider with forms authentication and you can of course design your login screen as you want. There is no best approach. You need to choose based on your needs.
You can even write your own providers, and put behind it your logic and data store.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900