ASP.NET version of "Login & Password"

By John Peterson

A very simple introduction to forms authentication in ASP.NET. The sample includes examples of the three files you'll need in order to password protect a page or section of your web site using ASP.NET: a login page, a page to protect, and an appropriately set up web.config file.

About the Author

From ASP101

Articles originally posted on



  • Multimedia Specialist

    Posted by Tim on 11/14/2012 08:55am

    Hello, I got the login page up, but when logging in, it goes right to default.aspx I also noticed I can go right to bypassing login Here is my web.config

  • aspcodes

    Posted by travies on 09/15/2012 03:20pm

    i need codes not echus and ek ek

  • compose

    Posted by anil kumar on 05/15/2012 11:47pm


Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Moving from an on-premises environment to Office 365 does not remove the need to plan for disruptions or reduce the business risk requirements for protecting email services. If anything, some risks increase with a move to the cloud. Read how to ease the transition every business faces if considering or already migrating to cloud email. This white paper discusses: Setting expectations when migrating to Office 365 Understanding the implications of relying solely on Exchange Online security Necessary archiving …

  • Anthony Christie, the Chief Marketing Officer for Level Communications, is responsible for customer experience, worldwide marketing and product management. In this informative asset, he shares his insights into why a private network connection to cloud-bases applications is the right decision for your enterprise. Download now to find out more.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date