如何避免回发 [英] how to avoid postback

查看:71
本文介绍了如何避免回发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

出现在我的新项目中的管理模块.根据用户权限菜单出现.为每个用户设置菜单,加载母版页页面中调用的功能.这样,项目变得非常缓慢,每次单击按钮时整个页面都会打开.有人建议使用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[^


这篇关于如何避免回发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆