|
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RegisterationPage.aspx.cs" Inherits="SecondPage"
MasterPageFile="~/MasterPage.master" %>
<asp:Content ID="content" runat="server" ContentPlaceHolderID="contentHolder">
<asp:UpdatePanel ID="contentupdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<div style="height: 200px; text-align: center; vertical-align: middle">
<h1>
After2050's Space
</h1>
<asp:Image ID="image" runat="server" ImageUrl="t3.jpg" Width="100px" Height="100px" />
</div>
<div>
<br />
<table id="inputForm" width="350px" style="background-color: #FFDBCA" align="center">
<tr>
<td colspan="2" align="center" style="font-weight: bold; font-size: 15pt">
Register
</td>
</tr>
<tr>
<td style="width: 100px">
Display Name: <span style="color: Red">*</span>
</td>
<td>
<asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqValName" runat="server" ErrorMessage="Name is required."
ControlToValidate="txtName" Display="None" ValidationGroup="valGroup" EnableClientScript="false"></asp:RequiredFieldValidator>
<Ajax:ValidatorCalloutExtender ID="valCalloutName" runat="server" TargetControlID="reqValName"
Enabled="false">
</Ajax:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td>
Date of Birth:
</td>
<td>
<asp:TextBox ID="txtDOB" runat="server" Width="100px"></asp:TextBox>
<asp:ImageButton ID="calendarImage" runat="server" ImageUrl="calendar.gif" Height="25px"
Width="25px" />
<asp:CompareValidator ID="cmpDOB" runat="server" ErrorMessage="Invalid Date of Birth."
ControlToValidate="txtDOB" Type="Date" Display="None" Operator="DataTypeCheck"
ValidationGroup="valGroup" EnableClientScript="false"></asp:CompareValidator>
<Ajax:ValidatorCalloutExtender ID="valCalloutDOB" runat="server" TargetControlID="cmpDOB"
Enabled="false">
</Ajax:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td>
Gender:
</td>
<td>
<asp:DropDownList ID="ddlGender" runat="server" Width="100px">
<asp:ListItem Value="0" Text="Select" Selected="True"></asp:ListItem>
<asp:ListItem Value="1" Text="Male"></asp:ListItem>
<asp:ListItem Value="2" Text="Female"></asp:ListItem>
</asp:DropDownList>
</td>
</tr>
<tr>
<td>
Company: <span style="color: Red">*</span>
</td>
<td>
<asp:TextBox ID="txtCompany" runat="server" Width="200px"></asp:TextBox>
<asp:RequiredFieldValidator ID="reqCompany" runat="server" ErrorMessage="Company is required."
ControlToValidate="txtCompany" Display="None" ValidationGroup="valGroup" EnableClientScript="false"></asp:RequiredFieldValidator>
<Ajax:ValidatorCalloutExtender ID="valCalloutCompany" runat="server" TargetControlID="reqCompany"
Enabled="false">
</Ajax:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td>
Email:
</td>
<td>
<asp:TextBox ID="txtEmail" runat="server" Width="200px"></asp:TextBox>
<asp:RegularExpressionValidator ID="regExEmail" runat="server" ErrorMessage="Invalid Email."
ControlToValidate="txtEmail" Display="None" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
ValidationGroup="valGroup" EnableClientScript="false" />
<Ajax:ValidatorCalloutExtender ID="valCalloutEmail" runat="server" TargetControlID="regExEmail"
Enabled="false">
</Ajax:ValidatorCalloutExtender>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="valGroup" OnClick="btnSave_Click" />
</td>
</tr>
</table>
</div>
<Ajax:CalendarExtender ID="calendarExtender" runat="server" Animated="true" PopupButtonID="calendarImage"
PopupPosition="Right" TargetControlID="txtDOB">
</Ajax:CalendarExtender>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Content>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a software developer from south tip of India. I spent most of the time in learning new technologies. I've a keen interest in client-side technologies especially JavaScript and admire it is the most beautiful language ever seen.
I like sharing my knowledge and written some non-popular articles. I believe in quality and standards but blames myself for lagging them.
I believe in small things and they makes me happy!