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
<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>&nbsp;
      <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>

Open in new window

LVL 33
jppintoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tiagosalgadoCommented:
Your code looks right. You're trying to validate date in wich format?
Your date is valid if you input in mm/dd/yyyy
0
jppintoAuthor Commented:
The problem is that the mask is not appearing on the textbox.

Um abraço Tiago (colega do jpaulino)
0
tiagosalgadoCommented:
I've copy your code to a aspx page and i'm seeing the mask, but only when you click in textbox.

Sem-t-tulo.jpg
0
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

jppintoAuthor Commented:
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
0
Jorge PaulinoIT Pro/DeveloperCommented:
Olá João, Olá Tiago,
Are you working on VS 2005 or VS2008 ?
 
0
jppintoAuthor Commented:
At home I'm working on 2005. At work I've VS 2008.

jppinto
0
Jorge PaulinoIT Pro/DeveloperCommented:
Have you downloaded the right toolkit for the VS2008 and the toolkit + AJAX essencials for the VS2005 ?
Like Tiago it works fine for me!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jppintoAuthor Commented:
Thanks for your help. Mean while I've solved the problem. I had the instalation of the Control Toolkit with problems.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.