471,344 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,344 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 1860
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by guoqi zheng | last post: by
2 posts views Thread by sunilthk | last post: by
9 posts views Thread by Armando | last post: by
23 posts views Thread by dkirkdrei | last post: by
reply views Thread by Ronak mishra | last post: by

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.