Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="FormValidation.Default" %>
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head runat="server">
- <title>Centennial</title>
- <link rel = "stylesheet" type = "text/css" href = "DefaultStyle.css" />
- </head>
- <body>
- <form id="form1" runat="server">
- <div>
- <asp:Panel ID="stuffPanel" runat="server">
- First Name*: <asp:TextBox ID="firstBox" TextMode="SingleLine" Columns="30" runat="server" /> <asp:Label ID="firstLabel" runat="server" Text="" /> <br />
- Last Name*: <asp:TextBox ID="lastBox" TextMode="SingleLine" Columns="30" runat="server" /> <asp:Label ID="lastLabel" runat="server" Text="" /> <br />
- Address*: <asp:TextBox ID="addBox" TextMode="Multiline" Columns="40" Rows="2" runat="server" /> <asp:Label ID="addLabel" runat="server" Text="" /> <br />
- Province*: <asp:TextBox ID="provBox" TextMode="SingleLine" Columns="2" runat="server" /> <asp:Label ID="provLabel" runat="server" Text="" /> <br />
- Postal Code*: <asp:TextBox ID="postBox" TextMode="SingleLine" Columns="10" runat="server" /> <asp:Label ID="postLabel" runat="server" Text="" /> <br />
- Age*: <asp:TextBox ID="ageBox" TextMode="SingleLine" Columns="3" runat="server" /> <asp:Label ID="ageLabel" runat="server" Text="" /> <br />
- Password*: <asp:TextBox ID="passBox" TextMode="Password" Columns="30" runat="server" /> <asp:Label ID="passLabel" runat="server" Text="" /> <br />
- Confirm Password*: <asp:TextBox ID="passConBox" TextMode="Password" Columns="30" runat="server" /> <asp:Label ID="passConLabel" runat="server" Text="" /> <br />
- Email*: <asp:TextBox ID="emailBox" TextMode="SingleLine" Columns="20" runat="server" /> <asp:Label ID="emailLabel" runat="server" Text="" /><br />
- Alternative Email: <asp:TextBox ID="emailAltBox" TextMode="SingleLine" Columns="20" runat="server" /> <br />
- Phone: <asp:TextBox ID="phoneBox" TextMode="SingleLine" Columns="20" runat="server" /> <br />
- Enter Another Member?: <asp:CheckBox ID="anotherCheck" runat="server" />
- <asp:Button ID="submitButt" Text="Submit" OnClick="validateForm" runat="server" /> <asp:Button ID="resetButt" Text="Clear Form" OnClick="resetAll" runat="server" />
- <p><asp:Label ID="nextLabel" runat="server" /></p>
- </asp:Panel>
- <asp:Panel ID="successPanel" runat="server">
- <p>Success! You will recieve a confirmation email in about 5 minutes.</p>
- <p>(If you do not see the email, try checking your spam folder!)</p>
- </asp:Panel>
- </div>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement