Figure 1. Create a Custom Login Page
The custom login page collects a user name and password from the user and validates it against the credential stored in the credential store. This process is easy if you store the credentials in a web.config file. The figure shows you how to layout your login page. Note that the URL includes the originally requested page as a query parameter. This parameter is used by the FormsAuthentication class later for redirecting to the originally requested page. If not present, it uses the page configured in the defaultUrl attribute of the <forms /> configuration tag.