次のコントローラーアクションがあります。
public ActionResult Details(string pk)
{
IEnumerable<ContentDetail> model = null;
try
{
model = _content.Details(pk);
if (model.Count() > 0)
{
return PartialView(getView(pk) + "Details", model);
}
}
catch (Exception e)
{
log(e);
}
return Content("No records found");
}
私はこれを次のルーチンで呼び出します。
$.ajax({
cache: false,
url: "/Administration/" + table + "s/Details",
data: { pk: partitionKey },
dataType: 'html',
success: function (responseText) {
$('#detailData').html(responseText);
$(".updatable")
.change(function (e) {
var type = $(this).attr('id').split('_')[0];
updateField(table, $(this), type);
});
$('.dialogLink')
.click(function () {
dialogClick(this);
return false;
});
},
error: function (ajaxContext) {
ajaxOnFailure(ajaxContext)
}
});
私が気付いたのは、コントローラーアクションの最初の行にブレークポイントを設定すると、ブレークポイントで停止していないように見えることがあるということです。結果がMVCによってキャッシュされている可能性はありますか?また、デバッグ中にこれが発生しないようにするにはどうすればよいですか?