Ajax request returns SQL zero decimals

1

Dear friends, I have an Asp Net MVC5 application that makes use of ajax in both inclusions and selects. Writing the decimal values normally occurs on the SqlServer bank but the recovery returns me zeroed even though the crop is set correctly. For recording use these two functions

    $.validator.methods.number = function (value, element) {
        return this.optional(element) ||
            !isNaN(Globalize.parseFloat(value));
    }

    jQuery.extend(jQuery.validator.methods, {
        range: function (value, element, param) {
            //Use the Globalization plugin to parse the value
            var val = Globalize.parseFloat(value);
            return this.optional(element) || (val >= param[0] && val <= param[1]);
        }
    });

Has anyone ever been through this? Thankful

    
asked by anonymous 25.06.2015 / 06:53

0 answers