467,075 Members | 1,097 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

enableEventValidation

We have an ASP.Net v1.1 application that gets the error Error Message: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."

Everything I have seen on the web talks about making the change in 2.0 but
it doesn't work in 1.1. What do I do to fix this problem?

Some of the controls are created on the fly on the page.

Feb 7 '07 #1
  • viewed: 7850
Share:
3 Replies
Any chances you're using __doPostBack() javascript function call directly or
any of thease iin code behind?

Page.GetPostBackClientHyperlink(...);
Page.GetPostBackClientEvent(...)

--
Milosz
"WinDev" wrote:
We have an ASP.Net v1.1 application that gets the error Error Message: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."

Everything I have seen on the web talks about making the change in 2.0 but
it doesn't work in 1.1. What do I do to fix this problem?

Some of the controls are created on the fly on the page.
Feb 7 '07 #2
I'm not aware of doing any of that. I am programatically adding things to the
page.

"Milosz Skalecki [MCAD]" wrote:
Any chances you're using __doPostBack() javascript function call directly or
any of thease iin code behind?

Page.GetPostBackClientHyperlink(...);
Page.GetPostBackClientEvent(...)

--
Milosz
"WinDev" wrote:
We have an ASP.Net v1.1 application that gets the error Error Message: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."

Everything I have seen on the web talks about making the change in 2.0 but
it doesn't work in 1.1. What do I do to fix this problem?

Some of the controls are created on the fly on the page.
Feb 7 '07 #3
1.1 event validation consisted of checking for "<"'s in the postback
data. as the message say, use the page directive to turn it off.

2.0 added checking the range of values if possible. for instance the
postback value of a dropdown must be in the list of data, etc.

-- bruce (sqlwork.com)

WinDev wrote:
We have an ASP.Net v1.1 application that gets the error Error Message: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."

Everything I have seen on the web talks about making the change in 2.0 but
it doesn't work in 1.1. What do I do to fix this problem?

Some of the controls are created on the fly on the page.
Feb 7 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by | last post: by
reply views Thread by UJ | last post: by
reply views Thread by tlchurch (at) gmail (dot) com | last post: by
2 posts views Thread by =?Utf-8?B?V2luRGV2?= | last post: by
2 posts views Thread by muralimk | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.