I try to understand Forms and Windows authentication. If anyone would kindly point out the difference in brief, I'll be grateful.
Actually I want to use aspnet_regsql.exe in a manner so that a user will log in and I'll later use that user records.
There will be one database that will hold every table together. After logging in user will post his content using his username, so that I could later show his/her content in a gridview.
Keeping this scenario in mind what will be the best otion?

1 answers
I dare to answer my question. Actually, last day I spent some time over it and after some experimenting with my website, I'm going to write what I found.
The main thing about Forms authentication is : it is being used for ASP.NET web application. With forms authentication, ASP.NET is expected to handle
all the details of authentication and security.
On the contrary The default authentication mode for ASP.NET applications is Windows, which is fine if you're working in an intranet environment where every user probably has a Windows login for use in the corporate network anyway. Using Windows authentication, Windows itself handles all the security and authentication, and you can use the myriad of Windows utilities and functions such as Active Directory, to manage your users.
The mechanism is, to use forms authentication and the SqlMembershipProvider, we need to create a database to authenticate against. This database will hold our user information, as well as membership information, so we can both authenticate the user and provide access based on membership in specific roles.
What I've done, I created the database using aspnet_regsql.exe and later added it to my website's App_Data folder. So that later it became easier to add other tables and establish a relationship between them.
If I'm wrong at anywhere of my understanding, experts please do rectify me.
answered one year ago by:
226