如何避免回发

问题描述:

大家好

出现在我的新项目中的管理模块.根据用户权限菜单出现.为每个用户设置菜单,加载母版页页面中调用的功能.这样,项目变得非常缓慢,每次单击按钮时整个页面都会打开.有人建议使用i框架,是否有可能或其他任何好的解决方案

在此先感谢

Hi all

Administration module added in my new project .according to the user rights menu is appearing .to set menu for each user the function called in master page page load .so that the project become very slow and the entire page turns in each button click..somebody suggest to use i frame is it possible or any other good solution for that

Thanks in Advance

使用"Ispostback"属性可以避免在每个回发中执行Page_Load代码.看看下面链接的答案.

避免在Asp.net应用程序中进行回发 [
Use "Ispostback" Property to avoid execution of your Page_Load code on every Postback. Have a look at answer of below link.

Avoid Postbacking in Asp.net Application[^