Wednesday, January 17, 2018

null-coalescing operator

The ?? operator is called null-coalescing operator.


   abc= (ssTeam.FieldName) ?? 0;


here if ssTeam.FieldName is null then abc will be 0.



Best Regards
#SSTEAM
we are making brotherhood

Tuesday, January 9, 2018

Bootstrap Year changed operation



 $("#idYear").datepicker({
                format: "yyyy",
                viewMode: "years",
                minViewMode: "years",
                autoclose: true
             
             
            }).on("changeYear",function() {
                //console.log("test");
                var changedtxt = $('#idYear').val();
                    var txtcardno = document.getElementById('idCardNo');
                    $("#idCardNo").val("");
                    $.getJSON(
                        "/Passenger/YearChanged_getCardNo", { "Changedtxt": changedtxt },
                        function (myData) {
                            txtcardno.value = myData.cardno;
                            document.getElementById("PSGRNM").focus();
                        });
            });