I have MVC view page where i have text area and input box and javascript function assigned to button like this
function Process() {
var input = $("#PrologUserInputTextArea").val();
var query = $("#PrologQueryTextArea").val();
$.get("@Url.Action("Process")", { userInput: input, query: query }, function (data) {
cleanDiv();
$("#PrologResultTextArea").val(data);
//do some work with
});
}
and in mvc controller i have method just like this :
public async Task<string> Process(string userInput, string query)
{
try
{
return await Proc.Process(userInput, query);
}
catch (PrologException e)
{
return e.Message;
}
}
This works as it should when I write small amount of text in text area (about 50 lines) but when I try several hundreds of lines this wont pass the string to controller. Is there some check in javascript where this function won't pass the string? How can I pass enormous string to controller?