Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. ASP PageMethod not working :-/

ASP PageMethod not working :-/

Scheduled Pinned Locked Moved ASP.NET
sysadmindata-structureshelp
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Matt Cavanagh
    wrote on last edited by
    #1

    All my AJAX using Page Methods is working except one which just never gets back to client side(but executes and returns fine on server). The only difference between this method and the previous ones is that this one returns a bit more data(all are strings btw). Ive tried making it return an array of sections of the string but it also never comes back. Please help, this is pretty urgent and its making me crazy :-/ Thank you

    Strive to be humble enough to take advice, and confident enough to do something about it.

    A M 2 Replies Last reply
    0
    • M Matt Cavanagh

      All my AJAX using Page Methods is working except one which just never gets back to client side(but executes and returns fine on server). The only difference between this method and the previous ones is that this one returns a bit more data(all are strings btw). Ive tried making it return an array of sections of the string but it also never comes back. Please help, this is pretty urgent and its making me crazy :-/ Thank you

      Strive to be humble enough to take advice, and confident enough to do something about it.

      A Offline
      A Offline
      Anurag Gandhi
      wrote on last edited by
      #2

      You might have forgot to add script manager with EnablePageMethods="true"?

      Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

      M 1 Reply Last reply
      0
      • A Anurag Gandhi

        You might have forgot to add script manager with EnablePageMethods="true"?

        Anurag Gandhi. http://www.gandhisoft.com Life is a computer program and every one is the programmer of his own life.

        M Offline
        M Offline
        Matt Cavanagh
        wrote on last edited by
        #3

        No, as I said, all the other ones on the page work. I set a onfail method and it results in "object [object]" ?

        Strive to be humble enough to take advice, and confident enough to do something about it.

        1 Reply Last reply
        0
        • M Matt Cavanagh

          All my AJAX using Page Methods is working except one which just never gets back to client side(but executes and returns fine on server). The only difference between this method and the previous ones is that this one returns a bit more data(all are strings btw). Ive tried making it return an array of sections of the string but it also never comes back. Please help, this is pretty urgent and its making me crazy :-/ Thank you

          Strive to be humble enough to take advice, and confident enough to do something about it.

          M Offline
          M Offline
          mrMercury
          wrote on last edited by
          #4

          How much more data are we talking here?, the PageMethod could be trying to send too much data to the JavaScript serializer, the default value is 102400 characters but you can change that in the web.config with the following:

          <system.web.extensions>
          <scripting>
          <webServices>
          <jsonSerialization maxJsonLength="500000" />
          </webServices>
          </scripting>
          </system.web.extensions>

          M 1 Reply Last reply
          0
          • M mrMercury

            How much more data are we talking here?, the PageMethod could be trying to send too much data to the JavaScript serializer, the default value is 102400 characters but you can change that in the web.config with the following:

            <system.web.extensions>
            <scripting>
            <webServices>
            <jsonSerialization maxJsonLength="500000" />
            </webServices>
            </scripting>
            </system.web.extensions>

            M Offline
            M Offline
            Matt Cavanagh
            wrote on last edited by
            #5

            Thanks :D

            Strive to be humble enough to take advice, and confident enough to do something about it.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups