ajaxtan gelen response den sonra location.reload(); yaptıgın için sayfa yenileniyor. yorumların bulundugu üst div'i seçip dönen verileri append edeceksin
Bahsettiğiniz bu şekilde ise yine sayfayı yenilemeden verilere erişemiyorum
$("#btncommentadd").click(function () {
let values = {
BlogID: $("#BlogID").val(),
CommentUserName: $("#CommentUserName").val(),
CommentTitle: $("#CommentTitle").val(),
CommentContent: $("#CommentContent").val(),
CommentDate: $("#CommentDate").val()
};
$.ajax({
type: "Post",
url: "/Comment/CommentAdd/",
data: values,
success: function (fnk1) {
let result = jQuery.parseJSON(fnk1);
$("#listcom").append(result)
//location.reload();
}
});
});