jppinto
asked on
MaskedEditExtender not working on Textbox
Hello,
I'm trying to make a masked date textbox to enter dates. I'm using the code showned below. This is not working.
Can someone give me an idea of what can be the problem?
Thanks,
jppinto
I'm trying to make a masked date textbox to enter dates. I'm using the code showned below. This is not working.
Can someone give me an idea of what can be the problem?
Thanks,
jppinto
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
.
.
.
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:TextBox ID="txtDias" runat="server" Width="100px"></asp:TextBox>
<cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server" Mask="99/99/9999" MaskType="Date" TargetControlID="txtDias" PromptCharacter="_"> </cc1:MaskedEditExtender>
<cc1:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskedEditExtender1" ControlToValidate="txtDias" EmptyValueMessage="Date is required" InvalidValueMessage="Date is invalid" IsValidEmpty="False" TooltipMessage="Input a Date"></cc1:MaskedEditValidator>
</ContentTemplate>
</asp:UpdatePanel>
ASKER
The problem is that the mask is not appearing on the textbox.
Um abraço Tiago (colega do jpaulino)
Um abraço Tiago (colega do jpaulino)
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm missing something on my page, for sure.
Can you post the complete code of your page trial? Maybe I'm missing some Register Assembly or some reference?
Thanks for your help.
jppinto
Can you post the complete code of your page trial? Maybe I'm missing some Register Assembly or some reference?
Thanks for your help.
jppinto
Olá João, Olá Tiago,
Are you working on VS 2005 or VS2008 ?
Are you working on VS 2005 or VS2008 ?
ASKER
At home I'm working on 2005. At work I've VS 2008.
jppinto
jppinto
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your help. Mean while I've solved the problem. I had the instalation of the Control Toolkit with problems.
Your date is valid if you input in mm/dd/yyyy