I am trying to send long string through Ajax. When the "note" string is short, it goes through fine. When it is more than a thousand characters or so, it silently fails, the action method is not called.
Ajax call:
$.ajax({
url: '@Url.Action("SaveSchoolNote")',
type: 'POST',
dataType: 'json',
data: { schoolId: schoolId, note: note },
cache: false,
success: function (data) {
}
});
Action:
public ActionResult SaveSchoolNote(int schoolId, string note)
{
...
}
Please help!