asp.net ajax 容器需要很长时间才能加载

发布于 2024-09-19 11:20:07 字数 347 浏览 9 评论 0原文

我在单个屏幕中使用 2 个 asp.net ajax 选项卡容器来实现主要用于 Intranet 的 asp.net 应用程序。

事实是,最终它可能必须通过互联网访问,并且加载需要 15-17 秒,而通过互联网访问时,在 Response.Redirect() 之后需要 35-40 秒。在内网中一切正常。

我在双核服务器上的 IIS 6.0 和 Windows Server 2003 中使用 asp.net 4.0 以及来自 AjaxControlToolkit 版本 3.0.30930.0 的 tabcontainer。当从互联网使用应用程序时,我需要设置/执行什么操作才能使该网络控件正常工作?有什么特别的事情可能会破坏网络控制的性能吗?

I'm using 2 asp.net ajax tab container for a mostly intranet used asp.net application in a single screen.

Thing is, eventually it might have to be accesed through internet and it's taking 15-17 seconds to load and 35-40 seconds after a Response.Redirect() when it's accesed through internet. In intranet it works alright.

I'm using asp.net 4.0 with the tabcontainer from the AjaxControlToolkit version 3.0.30930.0 in IIS 6.0 and Windows Server 2003 on a Dual Core server. Is there anything I have to set/do for that webcontrol to work properly when the application is used from internet? Is there anything in particular which could screw that webcontrol performance?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

岁吢 2024-09-26 11:20:07

尝试使用 fiddler 之类的工具来查看服务器发送和发送的内容。听起来您的页面大小可能非常大,在快速的 Intranet 连接上工作正常,但在互联网上速度很慢。

如果出现以下情况,在服务器上启用压缩将会有所帮助是这样的。

Try using a tool like fiddler to look at what is being sent to and from the server. It sounds like your page size might be really big which works okay over a fast intranet connection but is slow over the internet.

Enabling compression on the server will help if this is the case.

一身骄傲 2024-09-26 11:20:07

如果内部工作正常,而外部(互联网)工作情况较差,那么您的问题很可能与您的 ISP 端或您的网络路径中的某个位置的网络相关......

If it is working fine internally and worse on the outside (internet), then it seems more likely that your issue is network related either on your ISP's side or somewhere in your path to the net...

呆头 2024-09-26 11:20:07

什么可能会影响性能:

  • 较大的 ViewState。
  • 页面内容量大。
  • 从所述选项卡触发大量单独的请求,或者这些请求的尺寸很大(这可能隐含在图像或任何其他外部资源中)
  • 两侧的连接很糟糕/虽然可能是这样,但不太可能是真正的问题

查找输出您从服务器/提琴手收到的内容。

不仅检查页面的大小,还检查激活/图像等的其他请求数量等。还要检查相关请求的大小。

如果不检查上述内容,很难说出继续的最佳方法。

我见过一些非常大的视图状态/其中一种情况甚至是由页面中使用的第三方控件引起的。

what could be screwing the performance:

  • A large ViewState.
  • A large amount of page content.
  • A large amount of separate requests being triggered from said tab or with a large size on these (which could be implicitly with images or any other external resources being)
  • An awful connection on either side / while it may be, not likely the real problem

Find out what you are receiving from the server / fiddler.

Check not only the size of the page, but also how many other requests are activated / for images, etc. Also check the size of the related requests.

Without checking the above is hard to tell the best way to proceed.

I've seen some awfully large viewstate / one of such cases was even caused by a third party control used in the page.

表情可笑 2024-09-26 11:20:07

如果您放置许多包含大量内容的选项卡,每个选项卡可能会变慢,并且不会是 ajax tabcontainer 控制问题

if you place many tabs with large contents each one it'll likely turn slow and it wont be an ajax tabcontainer control problem

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文