In this article, I will demonstrate how to create a modal
popup login page in ASP.NET. By using Login controls, AJAX Extensions and
Toolkit, you can easily accomplish this task without much coding.
The demo project is based on Visual Web Developer Express
2008 and .NET Framework 3.5. It also assumes you have installed AJAX Toolkit.
You can download source code from here.
Listing 1 – Login page with modal popup
Key features of this project include:
Place login part in MasterPage and content in ContentPage.
Utilize Login, LoginStatus controls.
Use ModalPopupExtender and UpdatePanel to avoid postback.
Take advantage of Forms Authentication.