I have a mvc 3 razor project that on pc is working very good there are one problem on Ipad I have a list of artikel and a added button for test then i press added button it is return the date time now then i press the added buttom it is return a date time, then I press the second time it is return the same date time, my project on Ipad is taked value from cache I think, can every one help me??? This jquery code:
$(document).ready(function (){
$(".AddButton").live("click", function(){
var buttonId = $(this).attr("id");
var id = buttonId.substr(buttonId.indexOf("_"));
$.ajax({
type:'POST',
dataType:'json',
url: "@Url.Action("AddCommandArtikelJson","Home")",
data: {id:$("#Id"+id).val(), id_priceOnPad: $(this).attr("name")},
cache: false,
success: function(result){
$("#commandsCount").text(result);
}
});
});
});
and this controller function:
[HttpPost]
public JsonResult AddCommandArtikelJson(int id, int id_priceOnPad)
{//my code
return Json(DateTime.Now);
}