另一个关于 ajax.net 更新面板性能线程
美好的一天,
我们刚刚从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您希望能够单独加载页面的多少部分。
每个面板 = 单独的可更新部分
问候
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
这取决于您希望能够单独加载页面的多少部分,每个部分都需要一个面板。
完整的视图状态始终与回发一起发送到服务器。
问候
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