Page view counter

How Do I: Use the ASP.NET AJAX MaskedEdit Controls?

The ASP.NET AJAX Control Toolkit provides the MaskedEdit control and the MaskedEditValidator control which work together to prompt, style, and validate the data that the user enters in a text box. This allows the Web page to provide the user with immediate visual feedback on whether the data entered is of a valid type and format.

Presented by Joe Stagner

Duration: 17 minutes, 33 seconds

Date: 4 April 2007

Watch the video   |   Download the video   |   Get VB code  or  C# code

Video downloads: WMV | Zune | iPod | PSP | MPEG-4 | 3GP

Audio downloads: AAC | WMA | MPEG-4 | MPEG-3 | MPEG-2

Comments : 8

Leave a Comment

sandpointguy : On April 05, 2008 4:37 PM said:

Thanks Joe, this is real helpful.  The formatting looks cool when I enter data for the first time, but if Im working with data that already exists for the form (such as Ive populated from a database) the formatting doesnt take effect until the control gets focus.  Id like to also use it for initial display formatting.  Is that possible?

JoeStagner : On April 14, 2008 8:42 PM said:

Interesting, can you email me an example ?

cwang : On May 28, 2008 3:41 PM said:

Hi Joe, is it possible for this control to validate date format such as "May 27, 2008"?

jay2_deguzman : On July 31, 2008 2:44 AM said:

hi! were can i download the raw file of stylesheet.css so dat i can have the idea on how to make one for the maskedEditfocus etc..

cv_vikram : On August 06, 2008 2:49 PM said:

Very good tutorial.....thanks

ACE1 : On October 01, 2008 11:22 AM said:

In your example, when you entered the money, it started in the cents field.  When I do it, it starts at the ones spot and I need to use the decimal to get to the cents portion.  I want to be able to key in the value without using the decimal.  For example, if I type in 10050, it would show up as 100.50.  Is this possible?

Vivek Vashisht : On November 06, 2008 7:49 AM said:

How to validate time in hh:mm format?

salsam : On November 14, 2008 8:42 AM said:

Hi Joe,

I am trying to use this control but having problem with MaskEditvalidator.

My web application is using common master page which has a ValidationSummary Control. and my all pages use that summary contol to show error messages.

Now i m using MaskedEditValidator in one of my page and using its InvalidValueMessage to check if valid value is passed in the textbox or not.

But on the postback, even with the valid value it is showing me InvalidValue message.

Is there any way I can use Server-Side Validaton istead??

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities