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

Rebuild Index

Exclude property of Class Object from Serialization

Multiple Connection from Config File