You are on page 1of 7

<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage.

master"
AutoEventWireup="true" CodeFile="UserRegistration.aspx.cs" Inherits="UserRegistration"
Title="Client Registration Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h2 class="style2">Create a Distributed Computing Service Hosting Account</h2>
<hr/>
<div>
<asp:Label ID="lblErrMessage" runat="server" CssClass="labelErrorStyle"></asp:Label>
<asp:ValidationSummary ID="ValidationSummary1" runat="server"
DisplayMode="SingleParagraph"
HeaderText="The Following Fields are incorrect/missing :" />
</div>
<div style="margin-left:35px">
<table >
<tr>
<td colspan="2">
<h2 class="style2">New to distributed computing services.com?Register Below.</h2>
</td>
</tr>
</table>

<table>
<tr>
<td align="right">
<b>FirstName: </b>
</td>

<td>
<asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>LastName: </b>
</td>
<td>
<asp:TextBox ID="txtLastName" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>My EmailAddress: </b>
</td>
<td>
<asp:TextBox ID="txtEmailAddress" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2">
<h3 class="style3">Protect your information with a password
</h3>
</td>
</tr>
<tr>
<td align="right">
<b>Enter a New Password:</b>
</td>
<td>
<asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>Type it again:</b>
</td>
<td>
<asp:TextBox ID="txtRetypePassword" runat="server"
TextMode="Password"></asp:TextBox>
</td>
</tr>

<tr>
<td colspan="2">
<h3 class="style3">Contact Information
</h3>
</td>

</tr>

<tr>
<td align="right">
<b>Address Line 1*:</b>
</td>
<td>
<asp:TextBox ID="txtAddress1" runat="server" Width="407px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>Address Line 2&nbsp:</b>
</td>
<td>
<asp:TextBox ID="txtAddress2" runat="server" Width="404px"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>City:</b>
</td>
<td>
<asp:TextBox ID="txtCity" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>State:</b>
</td>
<td>
<asp:TextBox ID="txtState" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>Postal Code:</b>
</td>
<td>
<asp:TextBox ID="txtPostalcode" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>Country:</b>
</td>
<td>
<asp:TextBox ID="txtCountry" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td align="right">
<b>Mobile Number:</b>
</td>
<td>
<asp:TextBox ID="txtPhoneno" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<asp:Button ID="btnSubmit" runat="server" Text="Create Account"
CssClass="buttonStyle" Width="156px" onclick="btnSubmit_Click" />

</td>
</tr>
</table>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ErrorMessage="First Name;" Display="None"
ControlToValidate="txtFirstName"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"


ControlToValidate="txtLastName" Display="None"
ErrorMessage="Last Name;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"


ControlToValidate="txtEmailAddress" Display="None"
ErrorMessage="Email Address;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"


ControlToValidate="txtPassword" Display="None"
ErrorMessage="Password;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server"


ControlToValidate="txtAddress1" Display="None"
ErrorMessage="Address Line1;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server"


ControlToValidate="txtCity" Display="None"
ErrorMessage="City;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"


ControlToValidate="txtPostalcode" Display="None"
ErrorMessage="Postal Code;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server"


ControlToValidate="txtCountry" Display="None"
ErrorMessage="Country;"></asp:RequiredFieldValidator>

<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server"


ControlToValidate="txtPhoneno" Display="None"
ErrorMessage="Mobile Number;"></asp:RequiredFieldValidator>

<br />
<asp:CompareValidator ID="CompareValidator1" runat="server"
ControlToCompare="txtPassword" ControlToValidate="txtRetypePassword"
Display="None" ErrorMessage="Password and Retype Password
Mismatch;"></asp:CompareValidator>
<br />
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server"
ControlToValidate="txtEmailAddress" Display="None"
ErrorMessage="Invalid Email Address;"
ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
></asp:RegularExpressionValidator>

</div>

</asp:Content>

You might also like