顺序触发按钮单击

编程入门 行业动态 更新时间:2024-10-27 02:18:39
本文介绍了顺序触发按钮单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好,

我面临着一个棘手的情况.我的应用程序是使用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.

更多推荐

顺序触发按钮单击

本文发布于:2023-11-12 04:59:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580574.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:单击   顺序   按钮

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!