asp.net Web应用程序的速度提高 [英] Increasing speed in web application of asp.net

查看:85
本文介绍了asp.net Web应用程序的速度提高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,有一个页面包含大约10-15个控件和3个树状视图.由于需要进行大量逻辑检查,因此加载时间很长.如何提高其速度(任何方法,代码或数据库)?请提出一些措施.

例如:每次页面加载时,都会检查是否允许用户访问该页面.他可以访问哪些控件?树视图也仅基于用户访问权进行绑定.

在加载每个控件时,它一次又一次地获取数据.

In my project, there is a page which has about 10-15 controls and, 3 tree views. It takes a lot of time to load as there is lot of logical checking required. How can I increase its speed (any method, code or database)? Please suggest some measures.

For eg: Every time the page loads, it checks whether the user is allowed to access that page or not. What controls he can access? The tree views are also binded based on the user access only.

On the loading of each controls, it again and again goes to fetch data. How can it be minimized?

推荐答案

您提供的信息太少了.由于存在许多可以应用性能优化的热点,因此您必须考虑应用程序的每个主要方面,并尝试找到适当的优化步骤. Google将成为您的朋友.首先,请阅读以下内容:
10个ASP.NET性能和可伸缩性秘密 [ ^ ]
http://msdn.microsoft.com/en-us/library/ff647787.aspx [ ^ ]
http://msdn.microsoft.com/en-us/magazine/cc163854.aspx [ ^ ]
http://www.aspnet101.com/2010 /03/50-tips-to-boost-asp-net-performance-part-i/ [
You have provided far too few information. As there are many hot spots where a performance optimization could be applied, you have to think about every major aspect of your application, and try to find appropriate optimization steps. Google will be your friend. First of all, read these:
10 ASP.NET Performance and Scalability Secrets[^]
http://msdn.microsoft.com/en-us/library/ff647787.aspx[^]
http://msdn.microsoft.com/en-us/magazine/cc163854.aspx[^]
http://www.aspnet101.com/2010/03/50-tips-to-boost-asp-net-performance-part-i/[^]


在我看来最好使用菜单而不是树视图,并在后面的代码中绑定数据.
这可能对您有帮助
http://www.mathachew.com/sandbox/collapsible-menu/ [ ^ ]
In my point of view it is better to use menu instead of treeview and bind data in code behind.
This may help you
http://www.mathachew.com/sandbox/collapsible-menu/[^]


这篇关于asp.net Web应用程序的速度提高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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