Error when paging or sorting ONLY in Internet Exlpoere

Discussion in 'Databases' started by dmsims, Dec 4, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. http://theseacpage.web148.discountasp.net/Media.aspx

    Click on page 2 or 3 or any column heading to sort and it gives this error in IE only (well Firefosx is fine)

    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.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.ArgumentException: 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.
     
  2. Adding EnableEventValidation="false" to your page directives usually fixes this.

    i.e. <pages validateRequest="false" EnableEventValidation="false" />

    ...I've also seen reports of having more than one <form> on a page causing this.
    (Which is always wrong anyway.)
    Salute,
    Mark
     
  3. Mark thank you so much for the reply

    It is fixed
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page