0

I am working with jQuery.

I am populating a Dropdownlist from $.ajax post. It all works well on the client, I see the inserted items in the dropdown. However, when I try to post the data to the server two things happen:

Error:

Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback or callback argument. Event validation is enabled using 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 don't have any idea what to do.

I can't go with EnableEventValidation="false" because it's skipping validation and I want to validate. What could be wrong here?

halfer
  • 19,824
  • 17
  • 99
  • 186
Sadda-shutu
  • 1,309
  • 2
  • 18
  • 42
  • refer this http://stackoverflow.com/a/7750203/795683 – Sain Pradeep Nov 28 '14 at 07:06
  • thanks for reply Sain Pradeep but the proble is iam populating dropdown in page using jquery i can't post back on populating the dropdown does it make sence here i had refered it while i am populating it how can i render the method protected override void Render(HtmlTextWriter writer){} – Sadda-shutu Nov 28 '14 at 07:15
  • Can i have any example plz @Sain Pradeep – Sadda-shutu Nov 28 '14 at 07:17

0 Answers0