473,387 Members | 1,542 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.

Invalid postback - Timing Issue With Render

I keep getting the error message "Invalid postback or callback
argument" on my asp.net 2.0 pages in Internet Explorer. These pages
are simple, and just to make sure there is nothing wrong with the HTML,
I created an empty page with just the following in it:

<asp:Button runat="server" ID="Submit1" Text="Submit"></asp:Button>

When I navigate to this page and wait for the progress bar to show it
is complete 100% and then quickly click on the button, I get the error
message. However, when I do the same, except wait about 10 to 15
seconds after the page has completed downloading before clicking, I do
not get the error message.

I have done a bit of research on this and all of the literature I have
read points to a timing issue with rendering the page. The page has
completed its download, but it is still rendering (even though it is
displayed on the screen), and therefore upon clicking the submit
button, the verification of the control's events cannot be successfully
completed at the server, resulting in the aforementioned error message.

>From reading posts on here, it seems as though most people give up at
this point and set EnableEventValidation to false to prevent the error
from showing. While I love "work-arounds" as much as the next person,
I would REALLY APPRECIATE a more definitive response to this topic. Is
this really a bug in V2.0? A previously posted message said it is not
a "bug" but the way .NET is designed...that's questionable if this
really is the behavior that is going on. Is there some sort of setting
I could do besides turning off a security feature to prevent this error
message?

Thanks in advance!
Stephen

Nov 1 '06 #1
3 1422
this is a generic problem with web pages. you can naviate before all
contenet has been parsed. if its a form submit, then the server will not get
all the postback values its expecting, because they were never rendered., so
they are not included. also expected client script may not be processed.

the best approach is to use real anchors for links (no postback required).
then either:

1) disable the submit buttons, and enable on client form load. (maybe ms
will add an option for this.) the complexityof this is that to handle
javascript not enabled, you need render as enabled, followed by client
script that disables (and saves the initial state), then enable in onload.

2) hook into the onsubmit and onload events. in onload set a var that load
happened. in onsubmit cancel submit if load has not occurred.

-- bruce (sqlwork.com)
"stephenedavis" <st*****@netronline.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...
>I keep getting the error message "Invalid postback or callback
argument" on my asp.net 2.0 pages in Internet Explorer. These pages
are simple, and just to make sure there is nothing wrong with the HTML,
I created an empty page with just the following in it:

<asp:Button runat="server" ID="Submit1" Text="Submit"></asp:Button>

When I navigate to this page and wait for the progress bar to show it
is complete 100% and then quickly click on the button, I get the error
message. However, when I do the same, except wait about 10 to 15
seconds after the page has completed downloading before clicking, I do
not get the error message.

I have done a bit of research on this and all of the literature I have
read points to a timing issue with rendering the page. The page has
completed its download, but it is still rendering (even though it is
displayed on the screen), and therefore upon clicking the submit
button, the verification of the control's events cannot be successfully
completed at the server, resulting in the aforementioned error message.

>>From reading posts on here, it seems as though most people give up at
this point and set EnableEventValidation to false to prevent the error
from showing. While I love "work-arounds" as much as the next person,
I would REALLY APPRECIATE a more definitive response to this topic. Is
this really a bug in V2.0? A previously posted message said it is not
a "bug" but the way .NET is designed...that's questionable if this
really is the behavior that is going on. Is there some sort of setting
I could do besides turning off a security feature to prevent this error
message?

Thanks in advance!
Stephen

Nov 1 '06 #2
Are you doing with javascript something on that page?
Anyway,take a look here
http://channel9.msdn.com/ShowPost.aspx?PostID=159495
"stephenedavis" <st*****@netronline.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...
>I keep getting the error message "Invalid postback or callback
argument" on my asp.net 2.0 pages in Internet Explorer. These pages
are simple, and just to make sure there is nothing wrong with the HTML,
I created an empty page with just the following in it:

<asp:Button runat="server" ID="Submit1" Text="Submit"></asp:Button>

When I navigate to this page and wait for the progress bar to show it
is complete 100% and then quickly click on the button, I get the error
message. However, when I do the same, except wait about 10 to 15
seconds after the page has completed downloading before clicking, I do
not get the error message.

I have done a bit of research on this and all of the literature I have
read points to a timing issue with rendering the page. The page has
completed its download, but it is still rendering (even though it is
displayed on the screen), and therefore upon clicking the submit
button, the verification of the control's events cannot be successfully
completed at the server, resulting in the aforementioned error message.

>>From reading posts on here, it seems as though most people give up at
this point and set EnableEventValidation to false to prevent the error
from showing. While I love "work-arounds" as much as the next person,
I would REALLY APPRECIATE a more definitive response to this topic. Is
this really a bug in V2.0? A previously posted message said it is not
a "bug" but the way .NET is designed...that's questionable if this
really is the behavior that is going on. Is there some sort of setting
I could do besides turning off a security feature to prevent this error
message?

Thanks in advance!
Stephen

Nov 1 '06 #3
Are you doing with javascript something on that page?
Anyway,take a look here
http://channel9.msdn.com/ShowPost.aspx?PostID=159495

GEorge
"stephenedavis" <st*****@netronline.comwrote in message
news:11**********************@e64g2000cwd.googlegr oups.com...
>I keep getting the error message "Invalid postback or callback
argument" on my asp.net 2.0 pages in Internet Explorer. These pages
are simple, and just to make sure there is nothing wrong with the HTML,
I created an empty page with just the following in it:

<asp:Button runat="server" ID="Submit1" Text="Submit"></asp:Button>

When I navigate to this page and wait for the progress bar to show it
is complete 100% and then quickly click on the button, I get the error
message. However, when I do the same, except wait about 10 to 15
seconds after the page has completed downloading before clicking, I do
not get the error message.

I have done a bit of research on this and all of the literature I have
read points to a timing issue with rendering the page. The page has
completed its download, but it is still rendering (even though it is
displayed on the screen), and therefore upon clicking the submit
button, the verification of the control's events cannot be successfully
completed at the server, resulting in the aforementioned error message.

>>From reading posts on here, it seems as though most people give up at
this point and set EnableEventValidation to false to prevent the error
from showing. While I love "work-arounds" as much as the next person,
I would REALLY APPRECIATE a more definitive response to this topic. Is
this really a bug in V2.0? A previously posted message said it is not
a "bug" but the way .NET is designed...that's questionable if this
really is the behavior that is going on. Is there some sort of setting
I could do besides turning off a security feature to prevent this error
message?

Thanks in advance!
Stephen


Nov 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Jamie | last post by:
I am receiving an Invalid ViewState error after posting back to the same page twice. Consistently the error occurs after the second postback and not after the first. I have looked into creating...
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...
3
by: Martin | last post by:
Hi, I have an aspx page with two dropdownlist controls. I update the options in the second ddl based on selection made in the first. I do this with the ICallbackEventHandler interface, as per...
0
by: webmaster | last post by:
Hi all, I'm tearing my hair out with this one. I have successfully implemented by own RadioButtonList in order to provide additional functionality and a DIV rather than TABLE-based layout in...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.