本文介绍了功能执行的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临执行时间挑战.

在将特定的下拉列表(dd1)绑定到其数据源之后,我需要执行特定的函数(fx1).由于dd1已绑定到对象数据源,因此数据绑定取决于dd1的可见性,这可能是正确的,也可能不是.

我第一次尝试解决时序问题是在dd1的数据绑定事件中执行fx1.但后来我注意到此事件仅在dd1可见时发生,但是即使下拉菜单不可见,我也需要执行该函数.

在尝试解决计时问题的其他尝试中,我尝试使用Page事件来调用fx1(Page_DataBind等),但令我感到沮丧的是,这些事件甚至在调试过程中都没有执行(不知道为什么).

有任何想法吗?谢谢!

I am having a execution timing challenge.

I need a particular function (fx1) to be executed after a particular drop down (dd1) is bound to its data source. Since dd1 is bound to an object data source, data binding is dependent on the visibility of dd1, which may or may not be true.

My first attempt at resolving the timing was to execute the fx1 in the databound event for dd1; but then I noticed that this event only happens when dd1 is visible, but I need the function to be executed even when the drop down is invisible.

In other attempts to resolve the timing, I tried using Page events to call fx1 (Page_DataBind, etc.) but much to my frustration, these are not even being executed during debug (don''t know why).

Any ideas? Thanks!

推荐答案

Rebecca Caudill写道:
Rebecca Caudill wrote:

Page_DataBind

Page_DataBind



是的,您正在使用ASP.NET.您需要告诉我们这些事情,不要让我们猜测.




Yes, you''re using ASP.NET. You need to tell us these things, not leave us guessing.


Rebecca Caudill写道:
Rebecca Caudill wrote:

这些在调试过程中甚至没有执行(不知道为什么).

these are not even being executed during debug (don''t know why).



没有Page_DataBind,除非它是MVC框架的新增内容或一部分.



There is no Page_DataBind, unless it''s new or part of the MVC framework.


这篇关于功能执行的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 07:35