By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,664 Members | 1,970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,664 IT Pros & Developers. It's quick & easy.

[IE: Yes Opera:Yes Mozilla:No] : Error on Postback and Validation

P: n/a
teo

Mozilla error on postback and validation

-----------

A Button causes a Listbox to desappear.

If no item has been selected on the Listbox,
all is OK.

If one or more items are selected,
I receive the following error
(about postback and validation)

Note:
on IE is all OK,
on Opera is all OK,
on Mozilla (1.5.0.1) I get the Error

Is it bug of Mozilla?
How can I avoid that?

--------------------

This is the error:

Exception Details: System.ArgumentException: 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.

---------------

This is the stack trace:

[ArgumentException: 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.]
System.Web.UI.ClientScriptManager.ValidateEvent(St ring uniqueId, String
argument) +2082588
System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument) +106
System.Web.UI.WebControls.ListBox.LoadPostData(Str ing postDataKey,
NameValueCollection postCollection) +274

System.Web.UI.WebControls.ListBox.System.Web.UI.IP ostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection postCollection) +11
System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData, Boolean
fBeforeLoad) +408
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3776

Nov 10 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,

You can set enableEventValidation="false" in page directive.

Alexander Kleshchevnikov
www.klalex.com

"""teo ΠΙΣΑΜ(Α):
"""
Mozilla error on postback and validation

-----------

A Button causes a Listbox to desappear.

If no item has been selected on the Listbox,
all is OK.

If one or more items are selected,
I receive the following error
(about postback and validation)

Note:
on IE is all OK,
on Opera is all OK,
on Mozilla (1.5.0.1) I get the Error

Is it bug of Mozilla?
How can I avoid that?

--------------------

This is the error:

Exception Details: System.ArgumentException: 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.

---------------

This is the stack trace:

[ArgumentException: 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.]
System.Web.UI.ClientScriptManager.ValidateEvent(St ring uniqueId, String
argument) +2082588
System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument) +106
System.Web.UI.WebControls.ListBox.LoadPostData(Str ing postDataKey,
NameValueCollection postCollection) +274

System.Web.UI.WebControls.ListBox.System.Web.UI.IP ostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection postCollection) +11
System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData, Boolean
fBeforeLoad) +408
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3776
Nov 10 '06 #2

P: n/a
teo
>
>You can set enableEventValidation="false" in page directive.

Alexander Kleshchevnikov
www.klalex.com
I can't, it's too dangerous.
Nov 10 '06 #3

P: n/a
hello friend,

i am also got this same issue but i dont know how to resolve this issue

in my case Opera and Mozilla didnt get error but i got this error from
IE ,
if u get solution for this issue please inform me .....

Thanks and Regards
Dhanaseelan R

teo wrote:
Mozilla error on postback and validation

-----------

A Button causes a Listbox to desappear.

If no item has been selected on the Listbox,
all is OK.

If one or more items are selected,
I receive the following error
(about postback and validation)

Note:
on IE is all OK,
on Opera is all OK,
on Mozilla (1.5.0.1) I get the Error

Is it bug of Mozilla?
How can I avoid that?

--------------------

This is the error:

Exception Details: System.ArgumentException: 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.

---------------

This is the stack trace:

[ArgumentException: 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.]
System.Web.UI.ClientScriptManager.ValidateEvent(St ring uniqueId, String
argument) +2082588
System.Web.UI.Control.ValidateEvent(String uniqueID, String
eventArgument) +106
System.Web.UI.WebControls.ListBox.LoadPostData(Str ing postDataKey,
NameValueCollection postCollection) +274

System.Web.UI.WebControls.ListBox.System.Web.UI.IP ostBackDataHandler.LoadPostData(String
postDataKey, NameValueCollection postCollection) +11
System.Web.UI.Page.ProcessPostData(NameValueCollec tion postData, Boolean
fBeforeLoad) +408
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3776
Nov 11 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.