473,387 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
3 8183
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: | last post by:
Hi all, I have a bunch of dropdownlists that are populated in client-side javascript. When i do a postback I get the following error:- Invalid postback or callback argument. Event...
1
by: Mihir | last post by:
Hi There, I've problem while I submit a button where I used AJAX, I created simple page which will search the customer name from database using AJAX. Once I search customer ID i need to search...
1
by: Timbo | last post by:
Hi all, This is my first message here so i'll try and include all the information that will help you help me out, if possible. Basically I am using C# in ASP.NET 2.0 and have a Repeater...
0
by: UJ | last post by:
I 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...
0
by: tlchurch (at) gmail (dot) com | last post by:
I have a web app using ASP.NET, ASP.NET AJAX and Crystal Reports for Visual Studio. When I try to export the report, I selec the file type and pages, but then get the following error - ...
2
by: =?Utf-8?B?V2luRGV2?= | last post by:
I have a couple of pages that are throwing the following error: HTTPUnhandledException and the text of the message is: Invalid postback or callback argument. Event validation is enabled using...
2
by: muralimk | last post by:
use of EnableEventValidation="false" in our aspx pages iam not getting,can any body <DELETED>
1
by: yoni12ab | last post by:
Hi Im new in my job never configure iis the problem is that I reinstalled visual studio 2003 becouse of debugger problem and the local web site was working fine and now it doesent work it giving...
4
by: Lewis Holmes | last post by:
Hi I have the following situation in one of my asp.net pages. The user can add multiple table rows to a form by selecting a button. These rows can contain asp.net controls. When this button is...
9
by: 200dogz | last post by:
Hi guys, I want to have a button which opens up a new window when pressed. <asp:Button ID="Button1" runat="server" Text="Open new window" /> ... Button1.Attributes.Add("OnClick",
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.