Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Double post back problem with two clicks on a cont

Author  Topic 

ourspt
Starting Member

33 Posts

Posted - 2005-06-09 : 08:04:31
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

SamC
White Water Yakist

3467 Posts

Posted - 2005-06-09 : 14:26:21
If you are sure that's the problem, could you set/test a Session variable (semaphore) to check for a second post back?
Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2005-06-09 : 16:58:23
I've used a Server side button that has some client side script that hides / disabled the button on-click.

Michael

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page

SamC
White Water Yakist

3467 Posts

Posted - 2005-06-09 : 22:34:37
quote:
Originally posted by MichaelP

I've used a Server side button that has some client side script that hides / disabled the button on-click.
I like it. Got a JavaScript you can post?
Go to Top of Page
   

- Advertisement -