473,320 Members | 1,977 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.

Double post back problem with two clicks on a control

Hi,

We are working on a .NET application (ASP.NET/VB.NET). In our application,
when the user clicks on a control (say a link, button, check box or whatever)
and then clicks on the same control again (while the first click is being
processed), the application is hanging and giving errors. This is becuase
double post back happens.

Is there a way to avoid this problem. Help appreciated.

Thanks in advance
oursmp

Jul 21 '05 #1
2 1904
You can use javascript

in the code behind

MyControl.Attributes.Add("OnClick","this.enabled = false;")

Ibrahim ULUDAG
www.ibrahimuludag.com
"ourspt" <ou****@discussions.microsoft.com> wrote in message
news:83**********************************@microsof t.com...
Hi,

We are working on a .NET application (ASP.NET/VB.NET). In our application,
when the user clicks on a control (say a link, button, check box or
whatever)
and then clicks on the same control again (while the first click is being
processed), the application is hanging and giving errors. This is becuase
double post back happens.

Is there a way to avoid this problem. Help appreciated.

Thanks in advance
oursmp

Jul 21 '05 #2
You might also check to see if AutoPostback for that control is on.

Jul 21 '05 #3

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

Similar topics

6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
20
by: Charles Law | last post by:
This is actually a follow on from yesterday's post about masking mouse clicks in a user control. The solution I have implemented - from Herfried - places a transparent window over the entire...
0
by: ourspt | last post by:
Hi, In our application (web application in ASP.NET/VB.NET with SQL Server database), we have a situation where it is hanging due to double post back. In other words, if I have a check box on a...
3
by: Siv | last post by:
Hi, I have a ListView control in a Windows application, currently single clicking a customer name in this list, selects the customer and displays their details in text boxes to the right of the...
2
by: Siv | last post by:
Hi, I posted earlier in the week and no-one responded so i thought I would try again. My question is: I have a ListView control in a Windows application, currently single clicking a customer...
2
by: ourspt | last post by:
Hi, We are working on a .NET application (ASP.NET/VB.NET). In our application, when the user clicks on a control (say a link, button, check box or whatever) and then clicks on the same control...
2
by: sunilthk | last post by:
Hi All, I have a question. If javascript is disabled how asp.net determines which control has caused the post back. As we know that when we clicks on the button the buttons name goes with posted...
9
by: Armando | last post by:
I have an app (A2000) where I am letting the user move an object on the screen. I use the OnClick for a command button event to modify the object's Top (or Left) properties, but you can only click...
23
by: dkirkdrei | last post by:
I am having a bit of trouble trying to double up on slashes in a file path. What I am trying to do is very similar to the code below: <? $var =...
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...
0
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.