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

Unhandled exception

1 Answer 105 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Antonio
Top achievements
Rank 1
Antonio asked on 18 Jun 2013, 07:54 PM
Hi,

I am new to Telerik controls. And so far its been a little frustration using them.
I have a List View with User Controls for Insert and Update.
And every time I try to edit, insert or even cancel I get this error;
Unhandled exception at line 15, column 9936 in http://localhost:63390/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=3.5.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:7263e9c6-5962-41bc-b839-88b704bfcf0d:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2010.2.929.35,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:15a8cff0-9e51-4282-a100-c2dcd204ecf2:16e4e7cd:58366029:f7645509:24ee1bba:1e771326:aa288e2d:b7778d6c:c08e9f8a:8674cba1:59462f1:a51ee93e:e330518b:8e6f0d33:6a6d718d:e085fe68:1bb784d4:82923ac3
  
0x800a139e - JavaScript 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.

The functions and code are almost the same from another working ListView.

Any solutions for fixing this problem?

Thank you.

1 Answer, 1 is accepted

Sort by
0
Antonio
Top achievements
Rank 1
answered on 19 Jun 2013, 01:09 PM
Problem fixed.

 

 

 

if (!IsPostBack) {

 

    ListView.DataBind();

}

Tags
General Discussions
Asked by
Antonio
Top achievements
Rank 1
Answers by
Antonio
Top achievements
Rank 1
Share this question
or