Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Invalid postback or callback argument

    hi,

    Q: I have updatepanel with few textboxes and asp.net button. if i click the button inside updatepanel its working fine after this action i will try to click the button which is placed outside update panel then i getting this error.

    "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."

    Thanks & regards
    krsh

  • #2
    Regular Coder
    Join Date
    Apr 2009
    Posts
    244
    Thanks
    1
    Thanked 20 Times in 20 Posts
    Hey krish.mtm143,

    Have you tried to debug in the following ways:

    1. Set enableEventValidation="false"
    2. Put the outside button inside the UpdatePanel
    3. Get rid of the UpdatePanel

    What happens?

    Regards,
    Mike

  • #3
    New to the CF scene
    Join Date
    Nov 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hi Mike,

    thanks for ur respond..


    i make it enableEventValidation="false" in my web.config. now its workinging fine if the button is outside the updatepanel also..

    the actual problem is some of the guys says due to security reasons Set enableEventValidation="false" is not preferable.

    Is there another way to fix this problem..

    can u explain why i am getting this actual error..

  • #4
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ans

    Instead of setting EnableEventvalidation=false, Add the appropriate AsyncPostBackTrigger on the other UpdatePanel with the control being updated with the event that is doing the updating.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •