I have following ajax call:
var empId = $(this).attr('name').replace(/disp/,'');
$.ajax({
url: '<%= Url.Action( "AjaxDisp" ) %>',
data: { id: empId, format: 'json' },
dataType: 'json',
success: function(data,status) {
// populate the popup and display it
}
});
empId is there(I use alert(empId); to test it, it it okay). But in action method AjaxDisp(int id, strng format), I can get the id, but I can get format = "json".
Why?