Link to home
Create AccountLog in
Avatar of rrhandle8
rrhandle8Flag for United States of America

asked on

Datalist and enableEventValidation="false"

I have a datalist with imagebuttons.  If I click on an imagebutton, I get this error:

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.

Why do I have to add enableEventValidation="false"?
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Change  or add:

<pages validateRequest="false" />

to

<pages validateRequest="false" enableEventValidation="false" />
Avatar of rrhandle8

ASKER

Why should I add that?
ASKER CERTIFIED SOLUTION
Avatar of Kumaraswamy R
Kumaraswamy R
Flag of India image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account