顺序触发按钮单击 [英] Sequential firing of button clicks

查看:44
本文介绍了顺序触发按钮单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我面临着一个棘手的情况.我的应用程序是使用C#作为开发语言的.NET 3.5.我的页面上有许多用户控件,每个控件都有自己的保存"按钮.

I am faced with a tricky scenario. My application is in .NET 3.5 using C# as the development language. My page is having a number of User controls, each with a Save button of its own.

现在,我的包含用户控件的页面上还有一个名为SAVE的按钮.现在,相对于某些事件,所有这些用户控件都在页面中动态填充,并且它们都在单独的更新面板中.

Now my Page containing the User Controls also has a button named SAVE. Now all these User Controls are dynamically populated in the page with respect to some events and all of them are inside individual Update Panels.

现在我的要求是单击页面上的SAVE按钮,将触发用户控件的SAVE按钮单击.但是,由于它是异步调用,因此如果同时触发所有点击,将是一个沉重的负担.

Now my requirement is ONCLICK of the SAVE button in the page, the clicks of the SAVE buttons of the user controls will get fired. But since its an asynchronous call, it will be a heavy overload if all the clicks get fired simultaneously.

因此,我想到要进行连续的点击,即,在成功完成用户控件1的点击后,用户控件2的点击将被触发,依此类推.

So I thought of having sequential clicks done, i.e., after the successful completion of the Click of User Control 1, the click of User Control 2 will get fired and so on.

我想这可以通过服务器回调来完成,但是我不知该如何进行.

I presume this can be done with Server Callback, but I am at a loss how to proceed with it.

任何人都可以尽早为我提供解决方案会很有帮助.

It would be helpful if anyone can provide me with a solution at the earliest.

 

预先感谢

 

Sanjoy

推荐答案

现在我的要求是单击页面上的SAVE按钮,然后单击用户的SAVE按钮控件将被解雇.但是由于它是异步调用,因此如果同时触发所有点击,将是一个沉重的负担.
Now my requirement is ONCLICK of the SAVE button in the page, the clicks of the SAVE buttons of the user controls will get fired. But since its an asynchronous call, it will be a heavy overload if all the clicks get fired simultaneously.


您是如何实现的.您在UI线程上有异步方法吗?相当壮举.还是您有多个UI线程?还是一个壮举.


How did you implement this.  You have asynchronous methods on the UI thread?  Quite a feat.  Or you have multiple UI threads?  Still quite a feat. 


这篇关于顺序触发按钮单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆