Security, Authentication, and Authorization in ASP.NET Web Forms

How to let users to log in to your site (and optionally be assigned to roles) using either a login form or Windows authentication.