how do I pass string data containing html "<table><tr><td>Time</td><td>greetings</td></tr><tr><td>morning</td><td>Good morning</td></tr></tr><tr><td>Day</td><td>Good afternoon</td></tr></table>" into my mvc via ajax post ?
$.ajax({ url: "/home/Receive", type: 'POST', data: data }).done(function (response) { if (response.length > 0) { console.log(response); } else { alert('Error saving comments. Please try again.'); } });
$.ajax({ url: "/Home/Receive", type: 'POST', data: JSON.stringify({ 'htmlData': htmlData }), dataType: "json", traditional: true, contentType: "application/json; charset=utf-8", }).done(function (response) {
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)