参数异常:参数字典包含非可空类型参数的空条目

时间:2012-11-12 08:57:21

标签: c# javascript jquery

我收到了一位用户的错误报告,告诉我这个方法发生了错误:

public string SaveItem(int item_id,
                       string item_name,
                       int item_temp,
                       string item_number)
    {...}

错误是'item_temp'参数。

所以这个参数被称为null。但是这里是我如何在jquery中填充这个参数,在ajax调用中:

item_temp: ($('#myTextBox').val().length > 0 ? parseInt($('#myTextBox').val()) : -99999999),

如何将其称为null?

0 个答案:

没有答案