Invalid postback or callback argument

G

Guest

Here's what I'm doing. I got 2 dropdownlist controls that are dynamically
being populated by javascript. I'm assuming that the viewstate is no longer
valid , because when attempting to submit the form it throws the following
error during postback

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.

Is there any way that the javascript can modify the dropdownlists and
somehow retain the integrity of the page so that the options added by
javascript can be accessible during postback without having to resort to
populating of a hidden field?

Tks
 
G

Guest

The problem is that i don't know the values to register since they are
dynamically created on the client side by either ajax or user input.

I'd like to use updatepanels but there is too much overhead in the post and
response of the whole page.

Any other options?

Joey
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,928
Messages
2,570,068
Members
46,513
Latest member
JacklynMcC

Latest Threads

Top