Once you have configured the TropicalGreen site to use Forms authentication, the first time you view any page within the site, you will be redirected to the form located at /tropicalgreen/login.aspx
. However, that file does not exist yet! Let's create it.
With the TropicalGreen solution open in Visual Studio .NET, add a new web form to the root of the TropicalGreen project and name it Login.aspx
. Set the Page Layout
to FlowLayout
.
Toggle to HTML
view. Between the <head>
tags add a link to the stylesheet created in Chapter 7.
<LINK href="/tropicalgreen/Styles/Styles.css" type="text/css" rel="stylesheet">
Between the <form>
tags, add a table consisting of descriptive labels, textboxes for entering the domain, user name, and password, and a sign in button.
<div align="center"> <table> <tr> <td colspan="2"> <h1>Enter your Username and Password</h1> <hr noshade> </td>...