Invalid postback or callback argument

G

Guest

Another boring question but... canno't find any good answer

I created a user control with a DropDownList inside.

It is loaded in the page_Load event if not postback.

Then, just to verify it, I put it on a aspx page with a label and button.

When I click on the button, all I want is to put the value from the
dropdownlist
in the label. Very basic stuff... but

I receive 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.
 
B

bruce barker

this means at postback the dropdown postback value was not a value in
the list.

-- bruce (sqlwork.com)
 

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

Forum statistics

Threads
473,717
Messages
2,569,382
Members
44,701
Latest member
OurCBDLifeSupplement

Latest Threads

Top