473,406 Members | 2,698 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.

Rapid Postbacks

What happens if an asp.net user sends rapid postbacks before they can be
processed by the server. for instance, the user might hit a button that
triggers a long database update but then hits that button many more times in
quick succession. Or triggers a selectionchanged event, repeatedly, on a
dropdown with postback enabled.

Can the processing be interrupted or will they each be handled
asynchronously?
thanks,
T
Nov 19 '05 #1
4 1086
The "normal" answer to this problem is to disable the button on it's onclick
event, and re-enable the button in server-side code after processing the
ServerClick.

"Tina" <ti**********@nospammeexcite.com> ¼¶¼g©ó¶l¥ó·s»D:Oq**************@tk2msftngp13.phx.g bl...
What happens if an asp.net user sends rapid postbacks before they can be
processed by the server. for instance, the user might hit a button that
triggers a long database update but then hits that button many more times
in quick succession. Or triggers a selectionchanged event, repeatedly, on
a dropdown with postback enabled.

Can the processing be interrupted or will they each be handled
asynchronously? No idea. But I believe there's high probability it'll be handled
asynchronously. (Does it depend on browser or not?)
thanks,
T

Nov 19 '05 #2
TJS
I believe you'd have to disable the button in clientside script then submit
the form with javascript, to prevent multiple clicks from being sent to the
server.


"Tina" <ti**********@nospammeexcite.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
What happens if an asp.net user sends rapid postbacks before they can be
processed by the server. for instance, the user might hit a button that
triggers a long database update but then hits that button many more times
in quick succession. Or triggers a selectionchanged event, repeatedly, on
a dropdown with postback enabled.

Can the processing be interrupted or will they each be handled
asynchronously?
thanks,
T

Nov 19 '05 #3
if we have to do that to make asp.net work correctly then it is not a very
productive platform to develop apps with.
T

"TJS" <no****@here.com> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
I believe you'd have to disable the button in clientside script then submit
the form with javascript, to prevent multiple clicks from being sent to the
server.


"Tina" <ti**********@nospammeexcite.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
What happens if an asp.net user sends rapid postbacks before they can be
processed by the server. for instance, the user might hit a button that
triggers a long database update but then hits that button many more times
in quick succession. Or triggers a selectionchanged event, repeatedly,
on a dropdown with postback enabled.

Can the processing be interrupted or will they each be handled
asynchronously?
thanks,
T


Nov 19 '05 #4
Try using the OneClick control to prevent this.

http://www.metabuilders.com/Tools/OneClick.aspx

I use it in my apps. Works fine.
--
Joe Fallon

"Tina" <ti**********@nospammeexcite.com> wrote in message
news:O1**************@TK2MSFTNGP14.phx.gbl...
if we have to do that to make asp.net work correctly then it is not a very
productive platform to develop apps with.
T

"TJS" <no****@here.com> wrote in message
news:eI**************@tk2msftngp13.phx.gbl...
I believe you'd have to disable the button in clientside script then
submit the form with javascript, to prevent multiple clicks from being
sent to the server.


"Tina" <ti**********@nospammeexcite.com> wrote in message
news:Oq**************@tk2msftngp13.phx.gbl...
What happens if an asp.net user sends rapid postbacks before they can be
processed by the server. for instance, the user might hit a button that
triggers a long database update but then hits that button many more
times in quick succession. Or triggers a selectionchanged event,
repeatedly, on a dropdown with postback enabled.

Can the processing be interrupted or will they each be handled
asynchronously?
thanks,
T



Nov 19 '05 #5

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

Similar topics

0
by: M.sajjad | last post by:
Five Steps to Rapid Development with TierDeveloper 3.0 Unlock the power of rapid development when you use TierDeveloper from AlachiSoft in your N-Tier application development. Follow the steps...
0
by: M.sajjad | last post by:
Five Steps to Rapid Development with TierDeveloper 3.0 Unlock the power of rapid development when you use TierDeveloper from AlachiSoft in your N-Tier application development. Follow the steps...
0
by: M.sajjad | last post by:
Five Steps to Rapid Development with TierDeveloper 3.0 Unlock the power of rapid development when you use TierDeveloper from AlachiSoft in your N-Tier application development. Follow the steps...
12
by: Jim Michaels | last post by:
I need to generate 2 random numbers in rapid sequence from either PHP or mysql. I have not been able to do either. I get the same number back several times from PHP's mt_rand() and from mysql's...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.