Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
Need your help,
We are using Ajax methods to call MVC controller methods.

here is the sample code we have used,
JavaScript
var rowID="100";
$.ajax({
                    type: "POST",
                    url: "/home/selectdatafromlist",
                    data: "id=" + rowID,
                    success: function (output) {
//my code
                        },
                        error: function (xhr, status, error) {
                            alert("An AJAX error occured: " + status + "\nError: " + error + "\nError detail: " + xhr.responseText);
                        }
);

The error is coming like this,

The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult selectdatafromlist(Int32)'.

This code is working fine on Firefox and chrome.

any solution for this.


Thanks in advance.
Posted
Updated 29-Jul-14 1:30am
v3
Comments
AmolPatil19787 29-Jul-14 13:17pm    
in IE 11 its not working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900