473,406 Members | 2,336 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,406 software developers and data experts.

Double postback

Hi,
I have a page in which I encounter the following behaviour: when triggering
a server event that should normally only post back once, it actualy posts
back twice in some of the times. some other times it calls the page as though
it isn't a post back and immediatly after that it calls the page - this time
as a postback with the page viewstate. this causes some sequences that should
only occure once to be executed, and data becomes invalid. I use Anthem ajax
in my page, and several image buttons (I read in many forums that it may be
related).
What can I do to prevent such undesired postbacks?
Nov 13 '06 #1
5 4747
Did you every find the answer to this problem? I am experiencing a similar
issue.
--
Thanks,

Bill Manring
Wavefront Software, Inc.
"I.Katzav" wrote:
Hi,
I have a page in which I encounter the following behaviour: when triggering
a server event that should normally only post back once, it actualy posts
back twice in some of the times. some other times it calls the page as though
it isn't a post back and immediatly after that it calls the page - this time
as a postback with the page viewstate. this causes some sequences that should
only occure once to be executed, and data becomes invalid. I use Anthem ajax
in my page, and several image buttons (I read in many forums that it may be
related).
What can I do to prevent such undesired postbacks?
Feb 2 '07 #2
On Feb 2, 3:05 pm, Bill Manring
<BillManr...@discussions.microsoft.comwrote:
Did you every find the answer to this problem? I am experiencing a similar
issue.
--
Thanks,

Bill Manring
Wavefront Software, Inc.

"I.Katzav" wrote:
Hi,
I have a page in which I encounter the following behaviour: when triggering
a server event that should normally only post back once, it actualy posts
back twice in some of the times. some other times it calls the page as though
it isn't a post back and immediatly after that it calls the page - this time
as a postback with the page viewstate. this causes some sequences that should
only occure once to be executed, and data becomes invalid. I use Anthem ajax
in my page, and several image buttons (I read in many forums that it may be
related).
What can I do to prevent such undesired postbacks?- Hide quoted text -
when and where? (a code please)

Feb 2 '07 #3
The extra postback is happening after a modal dialog wwindow is closed.
There is javascript code that executes a Form.submit() to cause the postback.
I have confirmed that teh javascript code is only executing once, but the
page is posting back twice.

It does not always happen, as a matter of fact we can only reproduce the
problem with our application when it is running against one configuration of
our database. We can not tell whet in our data causes the problem - we don't
thnk anythng should - but there is something about the data in one instance
of our database that causes the different behavior.

I was just hoping that if there was an answer to the original question in
this thread that it might give me an idea and point me in the right direction.
--
Thanks,

Bill Manring
Wavefront Software, Inc.
"Alexey Smirnov" wrote:
On Feb 2, 3:05 pm, Bill Manring
<BillManr...@discussions.microsoft.comwrote:
Did you every find the answer to this problem? I am experiencing a similar
issue.
--
Thanks,

Bill Manring
Wavefront Software, Inc.

"I.Katzav" wrote:
Hi,
I have a page in which I encounter the following behaviour: when triggering
a server event that should normally only post back once, it actualy posts
back twice in some of the times. some other times it calls the page as though
it isn't a post back and immediatly after that it calls the page - this time
as a postback with the page viewstate. this causes some sequences that should
only occure once to be executed, and data becomes invalid. I use Anthem ajax
in my page, and several image buttons (I read in many forums that it may be
related).
What can I do to prevent such undesired postbacks?- Hide quoted text -

when and where? (a code please)

Feb 2 '07 #4
On 2 Feb., 15:34, Bill Manring <BillManr...@discussions.microsoft.com>
wrote:
The extra postback is happening after a modal dialog wwindow is closed.
There is javascript code that executes a Form.submit() to cause the postback.
I have confirmed that teh javascript code is only executing once, but the
page is posting back twice.

It does not always happen, as a matter of fact we can only reproduce the
problem with our application when it is running against one configuration of
our database. We can not tell whet in our data causes the problem - we don't
thnk anythng should - but there is something about the data in one instance
of our database that causes the different behavior.

I was just hoping that if there was an answer to the original question in
this thread that it might give me an idea and point me in the right direction.
It's difficult to answer without look into code.

I had a few problems in the past with AutoEventWireup property, can
you check if you enabled it?

Feb 2 '07 #5
Alexey,

Thanks for you efforts on this problem, I appreciate your time. I'm sorry
that I can not include code, but the application is very large and I don't
know what code to include. If I could find some code that was causing the
problem, I would probably have the answer.

Regarding your suggestion regarding the AutoEventWireup, it is not enabled
on the page in question.

Further experimentation on our side has shown this to only be a problem with
one particular in-house database that we use for demonstrations, we can not
produce the problem on any other database and none of our customers see it in
production. As such, it is a minor issue and we are going to ignore it for
now. I was hoping I could find a quick answer somewhere in these forums, but
if that is not the case then so be it.

Again, thanks for your time, but I wouldn't spend any more time thinking
about it on my behalf.

--
Thanks,

Bill Manring
Wavefront Software, Inc.
"Alexey Smirnov" wrote:
On 2 Feb., 15:34, Bill Manring <BillManr...@discussions.microsoft.com>
wrote:
The extra postback is happening after a modal dialog wwindow is closed.
There is javascript code that executes a Form.submit() to cause the postback.
I have confirmed that teh javascript code is only executing once, but the
page is posting back twice.

It does not always happen, as a matter of fact we can only reproduce the
problem with our application when it is running against one configuration of
our database. We can not tell whet in our data causes the problem - we don't
thnk anythng should - but there is something about the data in one instance
of our database that causes the different behavior.

I was just hoping that if there was an answer to the original question in
this thread that it might give me an idea and point me in the right direction.

It's difficult to answer without look into code.

I had a few problems in the past with AutoEventWireup property, can
you check if you enabled it?

Feb 2 '07 #6

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

Similar topics

2
by: Jon Maz | last post by:
Hi, I have written a page to test a function of mine that strips non-English accents and various other characters out of a given string. The function itself (called 'StripAll' in the code below)...
2
by: Darryl A. J. Staflund | last post by:
Hi there, Can anyone tell me why invoking a single SQL insert statement (well, rather, a method that performs a SQL insert) using an asynchronous delegate should result in twice the number of...
0
by: Xavier Osa | last post by:
Hi, I have an ASP.Net web page that you can download a file. As Fergunson's problem, it prompts twice dialog boxes only if I select Open button. If I select Save button, it prompts once. I'm...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
1
by: GregG | last post by:
This is information for those who may have been bitten by the "double-post" problem in GridView controls. I've been messing with ASP.Net about a week, and have uncovered an annoying 'feature'....
0
by: josephkorn | last post by:
Hi all. I have a problem in my website in trying to prevent a user from double submitting the form. I am calling a subroutine from my page_load event that passes in the commandbutton that I want...
7
by: =?Utf-8?B?TWlrZSBMb2dhbg==?= | last post by:
My environment. .Net 2.0 VS2k5 SP1, IE6 (6.0.2900.2180) I have a web content page. The page will post back twice if I am running in debug mode. However if I run through the breakpoints fast...
4
by: Jeff User | last post by:
Hi Using .NET 1.1, C#, web app I (actually our client) would like to be able to double click a selection in a listbox and have it postback to server . There I would want to access the item that...
3
by: =?Utf-8?B?V2lsbA==?= | last post by:
I have an image "button" which causes a postback. I handle the "click" with If Request.Form("btnBU7WD6_Submit.X") 0 Then... this works great. However, when a user double-clicks the image...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.