This is a migrated thread and some comments may be shown as answers.

Javascript Error on RadInput Demo

2 Answers 53 Views
Input
This is a migrated thread and some comments may be shown as answers.
hari
Top achievements
Rank 1
hari asked on 04 Jun 2010, 01:31 PM
Hi,
    I was checking the sample website application (comes on installing telerik ajax tools), i got an error on first look -  Input. First click the order now button then click reset after that again click order now. The error i got is:


Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: 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.

Please let me know the problem.Thank You

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 09 Jun 2010, 01:37 PM
Hello,

Could you please try to replicate the described issue with our online exam:
http://demos.telerik.com/aspnet-ajax/input/examples/common/orderform/defaultcs.aspx

Basically the problem you are facing is caused of abnormal change of the ViewState during postbacks. Event validation checks the incoming values in a POST to ensure the values are recognized. In other words, saved hash values in the __EVENTVALIDATION are different from these send through POST method.

One of the possible, solution is to disable event validation.
Change this line:     
        
<@Page ... enableEventValidation="true"  />     
       
To:     
       
<@Page ... validateRequest="false" enableEventValidation="false" />  


Best wishes,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
hari
Top achievements
Rank 1
answered on 10 Jun 2010, 06:04 AM
Hello, Thanks for the reply. Its working fine in your online demo.I cant reproduce the error. The suggested solutions works but is that the correct way to do that?
Tags
Input
Asked by
hari
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
hari
Top achievements
Rank 1
Share this question
or