为什么我的ASP.NET页面呈现缓慢时,放置在服务器上? [英] Why do my ASP.NET pages render slowly when placed on the server?

查看:220
本文介绍了为什么我的ASP.NET页面呈现缓慢时,放置在服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个GridView控件一个简单的aspx页面。我加载后,一个按钮的点击与搜索结果的GridView控件。一切正常,但HTML渲染的浏览器是很慢的在IE中有一个结果集> 2000(在其他浏览器工作正常。)我意识到这是缓慢的,因为记录的计数,但有什么办法,我可以使其更快? (我不希望使用的寻呼。)

I have a simple aspx page with a GridView control. I'm loading the GridView with search results after the click of a button. Everything works, but the HTML rendering on the browser is very slow in IE with a result set > 2000 (works fine in other browsers.) I realize it's slow due to the record count, but is there a way I can make it faster? (I don't want to use paging.)

奇怪的是,它的速度慢,只有当它承载的Windows 2003服务器上。它工作正常在我的本地,但无论是在试验现场或生产,出现问题。如果我远程桌面到我的测试服务器,并在本地运行那里,页面加载罚款。只有当我运行从我的本地机器上托管的服务器应用程序时出现问题。

Oddly, it's slow only when it's hosted on Windows 2003 server. It works fine on my localhost, but on either the test site or production, the problem occurs. If I remote desktop to my test server and run it locally there, the page loads fine. The problem only occurs when I run the server hosted application from my local machine.

我怎样才能解决这个问题呢?

How can I resolve this issue?

推荐答案

从本地主机传输时,由于网络的瓶颈是不是有工作正常 - 某些浏览器等待整个表,试图渲染之前被传输 - 尤其是当不使用固定的列宽(可加速性能);你看整个生成的页面的大小?

It works fine when transferring from localhost, as the network bottleneck is not there -- some browsers wait for the entire table to be transmitted before attempting to render - especially when not using fixed column widths (which can speed up performance); Have you looked at the size of the entire generated page?

这篇关于为什么我的ASP.NET页面呈现缓慢时,放置在服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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