Ajax request returns decimal zeroed from SQL

Asked

Viewed 38 times

1

Dear friends, I have an Asp Net MVC5 application that makes use of ajax in both inclusions and selects. The recording of the decimal values occurs normally in the Sqlserver database but the recovery returns me zeroed, although the culture is adjusted 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 been there? Thank you

  • Could you please input the server code?

  • We need to see the code that generates the answer (in the controller) not the JS that makes the request

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.