Je suit l'appel ajax:
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 est là (je l'utilise alert (EMPID), pour le tester, il le bien). Mais dans la méthode d'action AjaxDisp (int id, format strng), je peux obtenir l'identifiant, mais je peux obtenir format = "json".
Pourquoi?
Pouvez-vous afficher l'en-tête du message comme contenu affiché dans firebug? –