Click here to Skip to main content
15,915,093 members

Comments by Member 13484654 (Top 3 by date)

Member 13484654 26-Jun-19 7:09am View    
but web method not calling that is my error
[webmethod]
public static string GetCurrentTime(string name)
{
}|
Member 13484654 26-Jun-19 7:08am View    
$('#Button1').click(function () {
var table = $('#table').tableToJSON(); // Convert the table into a javascript object


console.log([table]);
alert(JSON.stringify(table));

JSON.stringify({ obj: javascriptObject });
$.ajax({
type: "POST",
url: "CourseSubTopicMaster.aspx/GetCurrentTime",
data: { name: JSON.stringify(table) },
contentType: "application/json; charset=utf-8",
dataType: "json",
async: false,
success: OnSuccess,
failure: function (response) {
alert(response.d);
}
});

});
Member 13484654 26-Jun-19 7:08am View    
ok