需要在页面加载事件中显示加载图像 [英] Need to show loading image in Page load event

查看:94
本文介绍了需要在页面加载事件中显示加载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想在页面加载时显示加载图像.由于页面具有第三方控件,因此页面加载会花费一些时间.

解决方案

如果您使用的是Ajax,还可以使用更新进度控件.

http://ajax.net-tutorials.com/controls/updateprogress-control/

Hello Kushwant,

我在上一页中使用modalpopupextender和一个按钮btnContinue来重定向URL.我写了这样的代码:
用Java语言编写:
< pre lang ="Javascript">
函数pageLoad(){


find(''ctl00_GFSTMSContentPlaceHolder1_ModalProgress'').hide();
}
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(
函数(发送方,e){
if(e.get_postBackElement().id =="ctl00_GFSTMSContentPlaceHolder1_btnContinue")//此行可以确保仅来自GridView1的请求将显示弹出面板,您可以将其更改为其他控件客户端ID.
{


Hi All,

I wanted to show loading image while page loading. because of page load is taking time since page having third party controls.

解决方案

if you are using the ajax , you can also use update progress control.

http://ajax.net-tutorials.com/controls/updateprogress-control/


Hello Kushwant,

I''m using modalpopupextender in previous page and a button btnContinue to redirect the url. I have written a code like this:
in Javascript:
<pre lang="Javascript">
function pageLoad() {


find(''ctl00_GFSTMSContentPlaceHolder1_ModalProgress'').hide();
}
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(
function(sender, e) {
if (e.get_postBackElement().id == "ctl00_GFSTMSContentPlaceHolder1_btnContinue") // This line can make sure only the request from GridView1 will present popup panel, you can change it to other control client id.
{


这篇关于需要在页面加载事件中显示加载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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