で次のコードを使用していますが、私の webmethod ではプレーンな HTML を返しています。contentType はここにありますか?
function PopulateTimetable(pGroupId) {
$.ajax({
type: "POST",
cache: false,
url: "StudentTimetable.aspx/PopulateTimetable",
data: "{ 'pGroupId': '"+51+"'}",
contentType: "application/json; charset=utf-8",
dataType: "html",
timeout: 10000,
success: function(data) {
$("#divTimetable").removeClass("Progress");
$("#divTimetable").html("").append(data);
},
error: function() {
$("#divTimetable").removeClass("Progress");
alert("An unexpected error has occurred during processing.");
}
});
}