在页面加载过程中显示加载图像 [英] show loading image during page load

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

问题描述

我想在页面加载期间显示图像或加载文本.

我使用Respnse.Write()在OnLoad()事件上显示图像,但它干扰了页面的CSS

I want to show an image or loading text during page load.

I used Respnse.Write() to display image on OnLoad() event but it is disturbing the CSS of page
How to do it?

推荐答案

锁定ASP.NET等待较长的回发页面并显示动画图像 [ ^ ]


使用AJAX UpdateProgress控件 [ ^ ].

请参见此示例.

http://www.aspxcode. net/free-asp-net-ajax-source-code.aspx?Topics =如何%20to%20Use%20UpdateProgress%20Control [
Use AJAX UpdateProgress Control[^].

See this example.

http://www.aspxcode.net/free-asp-net-ajax-source-code.aspx?Topics=How%20to%20Use%20UpdateProgress%20Control[^]


请看一下这篇文章,解释同一件事:具有Designer支持的Web应用程序的可自定义加载"控件 [^ ]
Have a look at this article explaining the same thing: Customizable ''Loading'' Control for Web Applications with Designer Support[^]


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

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