<asp:ScriptManager ID="ScriptManager1"
runat="server">
</asp:ScriptManager>
<br />
Enter the details below in
the textboxes and you will see how the masked control
Works
<br />
<div>
<asp:Label ID="Label1" runat="server" Text="Enter your name" ></asp:Label>
<asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox>
<br />
<br />
<asp:Label ID="Label2" runat="server" Text="Enter your roll number"></asp:Label>
<asp:TextBox ID="TextBox2" runat="server" Width="150px"></asp:TextBox>
<cc1:MaskedEditExtender ID="MaskedEditExtender1"
runat="server"
TargetControlID="TextBox2"
MaskType="Number" Mask="999" MessageValidatorTip="true" AcceptNegative="None"
InputDirection="RightToLeft"
ErrorTooltipEnabled="true"
>
</cc1:MaskedEditExtender>
<cc1:MaskedEditValidator ID="MaskedEditValidator1" runat="server"
ControlToValidate="TextBox2" ControlExtender="MaskedEditExtender1"
MinimumValue="1" MaximumValue="105" MinimumValueMessage="Please enter correct
roll number" MaximumValueMessage="Invalid
roll number! The highest roll
number is 105" Display="Dynamic"
IsValidEmpty="false"
InvalidValueMessage="The roll number does not exist" EmptyValueMessage="The
roll number is not entered">
</cc1:MaskedEditValidator>
<br />
<br />
<asp:Label ID="Label3"
runat="server"
Text="Enter date
of birth (mm/dd/yyyy)"></asp:Label>
<asp:TextBox ID="TextBox3"
runat="server"
Width="150px"></asp:TextBox>
<cc1:MaskedEditExtender ID="MaskedEditExtender2"
runat="server"
TargetControlID="TextBox3"
MaskType="Date"
Mask="99/99/9999"
MessageValidatorTip="true"
UserDateFormat="None"
UserTimeFormat="None"
InputDirection="RightToLeft"
ErrorTooltipEnabled="true"
>
</cc1:MaskedEditExtender>
<cc1:MaskedEditValidator ID="MaskedEditValidator2" runat="server"
ControlToValidate="TextBox3"
ControlExtender="MaskedEditExtender2"
Display="Dynamic"
IsValidEmpty="false"
InvalidValueMessage="Invalid
date!" EmptyValueMessage="The date is not entered">
</cc1:MaskedEditValidator>
<br />
|