Hello,
Create a web service and call it using AJAX to save the record. You can refer to below CP article's to know more about creating web services in C#
As far as AJAX call is concerned it can be easily done using JQuery library, the following code snippet depicts a typical AJAX call done using JQuery. It uses POST and sends data as application/x-www-form-urlencoded.
$.ajax({
url:your_service_url,
type: 'POST',
data: {"type":"TYPE", "reason":"REASON TEXT"},
complete: function(XMLHttpRequest, textStatus) {
if ("error" == textStatus)
alert("Unable to complete your request!");
},
success: function(data, txtStatus, jqXHR) {
}
});
Regards,