With ASP.NET Forms Authentication it's easy to setup a login page.
What if you want to make the login functionality more seamless? That's quiet easy too.
Remember that Forms Authentication uses a cookie to distinguish an authentication user from an unauthenticated user.
Here's a recipe for setting up an AJAX-style login:
1. Collect the user/password and send them to the server using AJAX.
2. On the server-side handler, verify that the user/password combination is correct and add the authentication cookie using the FormsAuthentication.SetAuthCookie method.
Now, the authentication cookie will be appended to subsequent requests to urls within your application.
More on Forms Authentication at pashabitz.com:
Security Issue with FormsAuthentication.RedirectFromLoginPage