GridViewAdapter + AJAX

Last post 04-10-2007 12:37 PM by binod12. 2 replies.

Sort Posts:

  • GridViewAdapter + AJAX

    03-01-2007, 4:22 AM
    • Member
      point Member
    • stolin
    • Member since 03-01-2007, 9:03 AM
    • Sweden
    • Posts 5

    We've just implemented CSS Friendly Control Adapters. We are also using AJAX extensions.

    The problem is GridViewAdapter and row's postback. Clicking on a row resuls in "Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation." I suspect it’s due to there is no method defined, but I don't have any prove. Before we installed the adapter it worked fine. We were binding some java script on each row. First we thought it was something to to with that. But the error remains even after we disable OnRowDataBound.

    Bug? Is there a simple way to solve this?

  • Re: GridViewAdapter + AJAX

    03-01-2007, 11:12 AM
    • Contributor
      3,298 point Contributor
    • Russ Helfand
    • Member since 09-14-2005, 6:22 PM
    • Groovybits.com
    • Posts 741

    Can you post the callstack in the error message (from the browser window)? Also, can you post your markup (and maybe some code)?

    Russ Helfand
    Groovybits.com
  • Re: GridViewAdapter + AJAX

    04-10-2007, 12:37 PM
    • Member
      7 point Member
    • binod12
    • Member since 03-03-2005, 9:58 PM
    • New Delhi
    • Posts 3

    I faced the similar problem with gridview having pagingandsortingcallback = true did not worked.

    Then I placed the gridview in updatepanel of ajax extension, which is working fine and there is no need for pagingandsortingcallback to enable true.

    You may use this to solve the problem.

Page 1 of 1 (3 items)
Microsoft Communities