Calling the Controller
action: @Url.Action( "UploadFiles", "Dokument", new { } )
Building JSON object with startTabIndex
public JsonResult UploadFiles()
{
var foo = 0;
return Json(new { startTabIndex = foo });
}
How can I access the startTabIndex
property?
complete: function (ajaxContext) {
console.log('ajaxContext: ' + ajaxContext); // not undefined
console.log(ajaxContext.startTabIndex); // undefined
startTabIndex = ajaxContext.startTabIndex; // not working
}