另一个关于 ajax.net 更新面板性能线程

发布于 2024-07-09 05:47:45 字数 318 浏览 8 评论 0原文

美好的一天,

我们刚刚从 ASP.NET 1.1 迁移到 ASP.NET 2.0。 我们正在使用 ajax 更新面板。

在一本Apress书(Pro asp.net 2008)中,我读到,当您使用updatepanel时,您不会减少发送的带宽数量,因为整个页面仍然被发送。

考虑到这一点,我还在许多网站上读到,最好使用多个更新面板,而不是仅包含整个页面的更新面板,以“减少发送的带宽量”。 在我看来,Apress 的书有矛盾,我想知道你们怎么看。

是只使用一个包含整个页面的更新面板更好,还是使用多个更新面板更好? 性能是我最关心的。

Good day,

we just moved from asp.net 1.1 to asp.net 2.0. We are using ajax update panels.

In an Apress book (Pro asp.net 2008) , I've read that when you use the updatepanel, you don't reduce the acount of bandwidth sent, because the entire page is still sent.

That in mind, I've also read on many websites that it is better to use multiple updatepanels instead of only one containing the entire page to 'reduce the amount of bandwidth sent'. In my opinion, there is a contradiction with the Apress book, and I was wondering what you guys think.

Is it better to use only one updatepanel containing the entire page, or many ones? The performance is my main concern.

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

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

发布评论

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

评论(2

淡水深流 2024-07-16 05:47:45

这取决于您希望能够单独加载页面的多少部分。

每个面板 = 单独的可更新部分

问候
K

It depends on how many parts of your page you want to be able to load separately.

Each panel = separate updateable part

Regards
K

暖树树初阳… 2024-07-16 05:47:45

这取决于您希望能够单独加载页面的多少部分,每个部分都需要一个面板。

完整的视图状态始终与回发一起发送到服务器。

问候
K

It depends on how many parts of your page you want to be able to load separately, you'll need a panel for each part.

The complete viewstate is always sent with the postback to the server.

Regards
K

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