加载所有页面控件并数据库时是否会触发事件?

发布于 2025-01-23 17:37:48 字数 204 浏览 1 评论 0原文

我使用的是Web控件的DeVexpress套件,并构建了一个带有文本框,Comboboxes等相当大的输入表格的页面。

我正在编写代码以随机生成数据以填充此大型形式。我在page_load事件上使用一条行调用此代码,但我意识到,在呼叫时,任何包含数据源的内容(例如,ComboBox)尚未数据库。

当页面的所有控件和数据源都绑定时,我是否可以将现有的事件引入该事件?

I am using the DevExpress suite of web controls and have built a page with a fairly large entry form with textboxes, comboboxes, etc.

I am writing code to randomly generate data to populate this large form with. I call this code with a line on the Page_Load event but I realize that at the time of the call, anything that has a datasource attached to it (combobox, for example), is not databound yet.

Is there an existing event I can hook into that is called when the all of the page's controls AND datasources are bound?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流心雨 2025-01-30 17:37:48

PRERENDerComplete 加载所有控件并数据库后,将发射页面生命周期事件。

The PreRenderComplete page lifecycle event is fired after all controls are loaded and databound.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文