Tuesday 13 March 2012

Error: Sys.ParameterCountException: Parameter count mismatch.

I had a gridview inside an update panel with a checkbox set to auto postback but every time it was clicked the parameter count mismatch error was being thrown by the ajax framework.

To get this working it was simply a case of setting the ScriptManager script mode to release so this error did not get thrown.

eg:

14 comments:

  1. Awesome, thanks! I knew it was something simple as I all my update panels were working fine before I incorporated Bootstrap. Now suddenly I have quite a few errors but this solved one of my main ones!

    ReplyDelete
  2. GR8!!it works

    ReplyDelete
  3. This solution is working and thanks very much for sharing this. Even Microsoft website solution failed at my case but this one worked. Thanks again!

    ReplyDelete
  4. Thank you. It does work for me. Appreciated.

    ReplyDelete
  5. Setting the scriptmode to release, you're just hidding the error, it is still happening you just don't see it...
    It's almost like an empty catch...

    ReplyDelete
  6. Thank you,it's working...:)

    ReplyDelete
  7. The postman says thanks

    ReplyDelete
  8. it's working for me. but the button click event is not fired

    ReplyDelete
  9. igGrid event was not working i already script tag but there few attributes were not added and when i added all attributes it works fine for me.

    ReplyDelete
  10. Yes, It works for me as well. Thanks for your answer :)

    ReplyDelete