ASP.NET AJAX:页面加载完成后触发一个UpdatePanel [英] ASP.NET AJAX: Firing an UpdatePanel after the page load is complete

查看:241
本文介绍了ASP.NET AJAX:页面加载完成后触发一个UpdatePanel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我敢肯定,这是很容易,但我无法弄清楚:

I'm sure this is easy but I can't figure it out:

我有一些关于它的UpdatePanel的ASP.NET页面。我希望页面的完全的负载中的UpdatePanel一些'请等待的文字。然后,一旦该页面的完全加载的我想打电话给一个code-身后功能来更新的UpdatePanel。

I have an ASP.NET page with some UpdatePanels on it. I want the page to completely load with some 'Please wait' text in the UpdatePanels. Then once the page is completely loaded I want to call a code-behind function to update the UpdatePanel.

任何想法什么的Javascript的组合,code-后面我要实现这个想法?

Any ideas as to what combination of Javascript and code-behind I need to implement this idea?

SAL

PS:我试过把我的函数调用在Page_Load但随后code运行的之前的页面交付和的,因为我要运行的功能需要一段时间,页面只是时间太长加载。

PS: I've tried putting my function call in the Page_Load but then code is run before the page is delivered and, as the function I want to run takes some time, the page simply takes too long to load up.

推荐答案

使用,将有一定的毫秒数之后被解雇的计时器控件(网页加载)。在计时器滴答事件刷新更新面板。

Use a timer control that will be fired after a certain number of milliseconds (for page to load). In the timer tick event refresh the update panel.

这篇关于ASP.NET AJAX:页面加载完成后触发一个UpdatePanel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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