.aspx页面性能问题 [英] .aspx page performance issue

查看:62
本文介绍了.aspx页面性能问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我们遇到页面加载问题,请任何人帮助我们

加载页面时,它会显示半个页面(垂直)几秒钟,然后完全显示,因此请任何人建议我们问题出在哪里.页面加载显示为从左到右的加载方式



问候
Sangamesh Arali

Hi,


we are getting page loading issue please anybody help us out

While loading the page it is displaying half page(vertical) for few seconds then it is showing fully so please anybody suggests us where is the problem. The page loading showing like left to right loading



Regards
Sangamesh Arali

推荐答案

似乎您在page_load中进行了一些繁重的操作(可能是数据调用).
因此,在page_load事件完成之前,将有一种局部显示,并且在page_load事件完成并且html呈现之后,页面已完全加载并呈现.

有几种选择,但2种选择最广泛地用于处理此问题
1.看看如何使页面加载亮起.研究as.net页面的生命周期,看看如何使页面加载方法更轻松.
2,使用Ajax加载数据并显示在页面中.

我更喜欢第二个,因为它也是最方便,最强大的.
因此,页面将立即加载,而page_load中没有数据库调用操作.在客户端使用ajax获取数据并在页面中显示数据.

希望这会给您一些构想.

欢呼
It seems, you are doing some heavy operation (data calling probably) in page_load.
So, until the page_load event completes, there will be a kind of partial display and the page is fully loaded and rendered after the page_load event completes and the html renders.

There are several options but 2 options most widely used to handle this
1. See, how you can make the page load light. Study the as.net page life cycle and see, how you can make the page load method light.
2, Use Ajax to load the data and display in the page.

I will prefer the 2nd one as this is the most convenient and robust as well.
So, the page loads instantly, no database call operation in page_load. Get the data using ajax in client side and display the data in the page.

Hope this gives you some idea to start with.

cheers


请检查是否加载了很多图像.如果是,那么我建议您最小化它们或使用css color属性替换它们
please check if u r loading many images. If yes, then i would suggest you u minimize them or replce them with css color property


这篇关于.aspx页面性能问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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