473,320 Members | 1,854 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,320 software developers and data experts.

Multple postbacks

Assuming a page with a "save" asp button. Seems that application users are
pressing the button multiple times without waiting the postback completion
and page refresh. This causes multiple execution of the corresponding event
delegate without reason. I want to block this. What is the recommended way to
do this ?

Thanks
Nov 19 '05 #1
5 1111
Hi

I wrote an article on exactly this problem.
http://www.codeproject.com/aspnet/On...ableButton.asp

HTHs

Daniel Walzenbach

"Argirop" <Ar*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:92**********************************@microsof t.com...
Assuming a page with a "save" asp button. Seems that application users are
pressing the button multiple times without waiting the postback completion
and page refresh. This causes multiple execution of the corresponding
event
delegate without reason. I want to block this. What is the recommended way
to
do this ?

Thanks

Nov 19 '05 #2
Daniel,

Thanks for your reply. I checked your article and I believe there is a
problem. If you are submitting an asp.net for with the submit button yoy are
bypassing any control validators code. And I dont know how to avoid this.
"Daniel Walzenbach" wrote:
Hi

I wrote an article on exactly this problem.
http://www.codeproject.com/aspnet/On...ableButton.asp

HTHs

Daniel Walzenbach

"Argirop" <Ar*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:92**********************************@microsof t.com...
Assuming a page with a "save" asp button. Seems that application users are
pressing the button multiple times without waiting the postback completion
and page refresh. This causes multiple execution of the corresponding
event
delegate without reason. I want to block this. What is the recommended way
to
do this ?

Thanks


Nov 19 '05 #3
Argirop,

I wrote a javascript that is part of a free component you may download
here: http://www.aboutfortunate.com?page=javascriptdemo which does exactly
what you want.

Much like Daniel's script it stops the button click, but it first calls
..Net's own page validation routine so that the form will only be submitted
if valid and so the button will only be disabled if the page is valid.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Argirop" <Ar*****@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Daniel,

Thanks for your reply. I checked your article and I believe there is a
problem. If you are submitting an asp.net for with the submit button yoy
are
bypassing any control validators code. And I dont know how to avoid this.
"Daniel Walzenbach" wrote:
Hi

I wrote an article on exactly this problem.
http://www.codeproject.com/aspnet/On...ableButton.asp

HTHs

Daniel Walzenbach

"Argirop" <Ar*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:92**********************************@microsof t.com...
> Assuming a page with a "save" asp button. Seems that application users
> are
> pressing the button multiple times without waiting the postback
> completion
> and page refresh. This causes multiple execution of the corresponding
> event
> delegate without reason. I want to block this. What is the recommended
> way
> to
> do this ?
>
> Thanks


Nov 19 '05 #4
Justin, Daniel,

The problem is solved.

Thank you very mutch.
"S. Justin Gengo" wrote:
Argirop,

I wrote a javascript that is part of a free component you may download
here: http://www.aboutfortunate.com?page=javascriptdemo which does exactly
what you want.

Much like Daniel's script it stops the button click, but it first calls
..Net's own page validation routine so that the form will only be submitted
if valid and so the button will only be disabled if the page is valid.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Argirop" <Ar*****@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
Daniel,

Thanks for your reply. I checked your article and I believe there is a
problem. If you are submitting an asp.net for with the submit button yoy
are
bypassing any control validators code. And I dont know how to avoid this.
"Daniel Walzenbach" wrote:
Hi

I wrote an article on exactly this problem.
http://www.codeproject.com/aspnet/On...ableButton.asp

HTHs

Daniel Walzenbach

"Argirop" <Ar*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:92**********************************@microsof t.com...
> Assuming a page with a "save" asp button. Seems that application users
> are
> pressing the button multiple times without waiting the postback
> completion
> and page refresh. This causes multiple execution of the corresponding
> event
> delegate without reason. I want to block this. What is the recommended
> way
> to
> do this ?
>
> Thanks


Nov 19 '05 #5
Hi Argirop,

good to hear you solved your problem! What did you do? If you post your
solution others can participate as well!

Have a nice weekend

Daniel Walzenbach
"Argirop" <Ar*****@discussions.microsoft.com> schrieb im Newsbeitrag
news:08**********************************@microsof t.com...
Justin, Daniel,

The problem is solved.

Thank you very mutch.
"S. Justin Gengo" wrote:
Argirop,

I wrote a javascript that is part of a free component you may download
here: http://www.aboutfortunate.com?page=javascriptdemo which does
exactly
what you want.

Much like Daniel's script it stops the button click, but it first calls
..Net's own page validation routine so that the form will only be
submitted
if valid and so the button will only be disabled if the page is valid.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Argirop" <Ar*****@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
> Daniel,
>
> Thanks for your reply. I checked your article and I believe there is a
> problem. If you are submitting an asp.net for with the submit button
> yoy
> are
> bypassing any control validators code. And I dont know how to avoid
> this.
>
>
> "Daniel Walzenbach" wrote:
>
>> Hi
>>
>> I wrote an article on exactly this problem.
>> http://www.codeproject.com/aspnet/On...ableButton.asp
>>
>> HTHs
>>
>> Daniel Walzenbach
>>
>> "Argirop" <Ar*****@discussions.microsoft.com> schrieb im Newsbeitrag
>> news:92**********************************@microsof t.com...
>> > Assuming a page with a "save" asp button. Seems that application
>> > users
>> > are
>> > pressing the button multiple times without waiting the postback
>> > completion
>> > and page refresh. This causes multiple execution of the
>> > corresponding
>> > event
>> > delegate without reason. I want to block this. What is the
>> > recommended
>> > way
>> > to
>> > do this ?
>> >
>> > Thanks
>>
>>
>>


Nov 19 '05 #6

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

Similar topics

1
by: Jim Mitchell | last post by:
OK, have I come full circle.... ? 1) .NET with VS Studio seemed to be the answer to all my prayers. A) No more worries about coding for Netscape vs. IE. B) Quick Deployment C) All code in...
6
by: Jon Maz | last post by:
Hi All, I am experimenting with URL Rewriting using the techniques outlined by Scott Mitchell in his article "URL Rewriting in ASP.NET"...
3
by: Nelson | last post by:
My development environment is ASP.Net with VB.Net and .Net Framework 1.1. For a web control text box through client code(java script) I am changing the font color. After post the color is...
5
by: Dave | last post by:
(Second Try) Greetings, I have an asp.net web application that utilizes a User Control at the top of the page. My User Control contains a Server Control menu which will require postbacks. ...
3
by: John | last post by:
I have an asp.net control which on the first Load of the page has a unique ID something like: _ctl0__ctl1_GroupName__ctl1_ControlName and after the first postback it changes to: ...
0
by: gregfocker | last post by:
I installed the new RTM version of ASP.NET 2.0 AJAX Extensions 1.0 released on Tuesday (1/23). I made the required changes to the web.config file to go from the RC version to the RTM version. ...
1
by: Kursat | last post by:
Hi, I have a question about Ajax postbacks : - Does ASP.NET process multiple UpdatePanel postbacks in single thread when two or more different update panel postbacks occur at the same time for...
4
by: Nathan Sokalski | last post by:
I have 2 private variables in my class that I need to remember the values of between postbacks (or actually callbacks, since I am using AJAX). I want to avoid using session variables, if possible....
1
by: charmgirl | last post by:
hi, is it possible to have multple forms in a page. if yes than how to read data from multople forms ?
5
by: KingKen | last post by:
I have a situation whereby I have to enter many records in a db that only have one field that changes. For example software installed on a computer would give you many different rows of data with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.