ASP.NET AJAX Tips and Tricks
By default ASP.NET AJAX will load and render your controls even if they do not need to be updated.
Example:
In this case the Panel marked as "Slow loading area" will be updated by default even on DropDownList1 selected index changed.
What can we do to prevent this?
You can set Panel1.Visible to true/false according to the current ajax request.
Example:
Enjoy!
本文介绍如何在ASP.NET AJAX中优化控制面板的更新机制。通过设置Panel的Visible属性为true或false,可以避免不必要的加载,提高用户体验。特别针对慢加载区域,此方法能有效减少资源消耗。
375

被折叠的 条评论
为什么被折叠?



