页面加载动态控件时加载图标. [英] loading an icon while page is loading dynamic controls.

查看:60
本文介绍了页面加载动态控件时加载图标.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有没有一种方法可以显示带有正在加载图标"的div,当页面正在加载时.我在.aspx页中有一个文字控件,并且我正在通过API调用创建许多控件,然后将它们刷新到浏览器中.此过程需要花费很多时间来加载.在这段时间内,我需要显示一个图标加载.任何解决方案都是可以接受的(例如重定向到另一个页面等).本身没有点击事件.我需要在控件呈现到浏览器时显示图标.

Hi,

Is there a way to show a div with "loading icon" while a page is being loaded. I have a literal control in the .aspx page, and i am creating lot of controls through API calls and later flushing those to the browser. this process takes lot of time to load. I need to show an icon loading during that time. Any solution is acceptable(like redirecting to another page, etc). There is no click event as such. i need to show the icon while the controls are getting rendered to the browser.

推荐答案

在这种情况下,我可能会重新设计页面以使用Ajax.

或者,您可以考虑将iframe用于处理昂贵"的页面.
I would probably redesign the page to use ajax in this situation.

Or you might consider using an iframe for the page that is "expensive" to process.


这篇关于页面加载动态控件时加载图标.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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