且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

需要在页面加载事件中显示加载图像

更新时间:2023-09-22 10:06:58

如果您使用的是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.
{