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 - Change Colour of Navigation Bar (Page Title For Master-Detail Template)

Xamarin Forms : PopUp Page with RG.Plugins.Popup