I Using this code
<script type="text/javascript">
$(function() {
$('#DoTask').click(function(event) {
event.preventDefault(); // added this
$.getJSON('/TareasBackGround/DoTaskInteractivo', null,
function(response) {
$('#ResultadoEjecutarTarea').html("<br />Resutado:" + response.result);
$('#ResultadoEjecutarTarea').css("style", "");
});
});
});
After the first call I get always the same result. I add the time stamp to the result to check this.
Any ideas?