AJAX Masked Edit Extender Problem

Ajax Date Control using Masked Edit Extender 
while Navigating from Date Control without entering date if you move out of control. Control will validate for input date,This happen because for _ to enter the value in control.

Solution :- 
using jquery remove the _ is nothing is entered in control

 $(document).ready(function () {
            $("#<%= txtExpDate.ClientID %>").focusout(function () {

                if ($("#<%= txtExpDate.ClientID %>").val() == "__/__/__") 
                {
                    $("#<%= txtExpDate.ClientID %>").val("") ;
                }
            });

        });

Comments

Popular posts from this blog

Shared / Static Class in vb.net/C#

Xamarin Forms : PopUp Page with RG.Plugins.Popup

Text was truncated or one or more characters had no match in the target code page.". (SQL Server Import and Export Wizard)