Irregardless of the Culture Info used, Masked Edit Validator should validate date regarding the format specified in the "UserDateFormat" of the MaskedEditExtender. That means the lowest priority of checking the format of the date must be the "UserDateFormat" property. Correct me if I'm wrong. In the first releases of Ajax Control Toolkit, it seems that "UserDateFormat" is useless because it is being validated based on the Culture Info. Because MaskedEditValidator.js is using date formats (MDY, DMY, YMD, YDM and DYM), I changed the portion of the code in "case MaskedEditType.Date:" in the OnPreRender() event of "MaskedEditValidator.cs". Please take a look at the attached "MaskedEditValidator.cs".
Thanks.
Regards,
Shier Vermont REYES
Comments: Hi, I want localize web application. Now I facing problem in 'Ajax:MaskedEditValidator' that is " at AjaxControlToolkit.MaskedEditExtender.set_CultureName(String value) in d:\E\AjaxControlToolkit_AjaxTk\Orcas\AjaxControlToolkit\MaskedEdit\MaskedEditExtender.cs:line 412 at AjaxControlToolkit.MaskedEditExtender.OnPreRender(EventArgs e) in d:\E\AjaxControlToolkit_AjaxTk\Orcas\AjaxControlToolkit\MaskedEdit\MaskedEditExtender.cs:line 89 at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ' how to include attached MaskedEditValidator.cs and MaskedEditBehavior.js file in my web application.
Thanks.
Regards,
Shier Vermont REYES
Comments: Hi, I want localize web application. Now I facing problem in 'Ajax:MaskedEditValidator' that is " at AjaxControlToolkit.MaskedEditExtender.set_CultureName(String value) in d:\E\AjaxControlToolkit_AjaxTk\Orcas\AjaxControlToolkit\MaskedEdit\MaskedEditExtender.cs:line 412 at AjaxControlToolkit.MaskedEditExtender.OnPreRender(EventArgs e) in d:\E\AjaxControlToolkit_AjaxTk\Orcas\AjaxControlToolkit\MaskedEdit\MaskedEditExtender.cs:line 89 at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ' how to include attached MaskedEditValidator.cs and MaskedEditBehavior.js file in my web application.