ajax cascadingdropdown

When I have added following line just above the Webservice class declaration, the Cascading Dropdown functionality is started working for me.

[System.Web.Script.Services.ScriptService]

It's amazing. But soon I noticed some limitations with Cascading Dropdown. When i tried to populate large amount of data it again started throwing [Method Error 500] error. This error is not related to the number items in the drop down. I think this is related to amount of data being populated in the dropdown. The functionality works if I have limited data. But if the no of item/ size of item increase the problem starts.

Does anyone know solution to this problem? Your immediate help is much appreciated.
devdeptAsked:
Who is Participating?
 
Edwin_CCommented:
In your web.config, locate the section

<system.web.extensions>
  <scripting>
    <webServices>
    <!-- add the following line.  The number indicates the max number of characters returned from web services -->
             <jsonSerialization maxJsonLength="50000000"></jsonSerialization>
0
 
devdeptAuthor Commented:
Accept Answer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.