Je migre mon projet mvc1 vers mvc2.Problème de migration mvc2
ma fonction de résultat jquery json ne fonctionne plus. avoir une idée?
ASPX
$.getJSON('Customer/GetWarningList/0', function(jsonResult) {
$.each(jsonResult, function(i, val) {
$('#LastUpdates').prepend(jsonResult[i].Url);
});
});
contrôleur
public JsonResult GetWarningList(string id)
{
List<WarningList> OldBck = new List<WarningList>();
return this.Json(OldBck);
}
Avez-vous une exception? Que voyez-vous dans Firebug/Fiddler? Plus d'informations plz ... –