SharePoint - Ajax call

Henrik Ravn 21 Reputation points
2021-05-27T05:41:07.123+00:00

Hi,

I have a Web Part and sending a request from Ajax call to a web method.
How is it possible to increase the limit for data returned from web method to the Ajax call?

/Henrik

Microsoft 365 and Office SharePoint Server Development
{count} votes

2 answers

Sort by: Most helpful
  1. Henrik Ravn 21 Reputation points
    2021-05-27T06:45:04.617+00:00

    I am sending custom made html from webmethod (code-behind) back to the Ajax call to be rendered on SharePoint webpart.
    It gives error 500, and i have tried to hardcode the result so that I am sure it is not data-mishmatch.
    I have tried to increase the size in web.config but no luck.


  2. Henrik Ravn 21 Reputation points
    2021-05-27T09:22:57.93+00:00

    If my data is small the client/server call is working fine, so it must have something to do with the size of data, I think

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.