I have a public static
function that returns a string (WebMethod).
I want to put this string in an HTML element.
If the string has a small length, it's ok. However, when the length is too big, I get a 500 error.
My solution is writing the string in a .txt
file and reading the file in a JavaScript function.
But I don't know if it is the best solution. Is there another way to solve this problem?