母版页刷新 [英] Master page Refresh

查看:63
本文介绍了母版页刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我的主页上有顶层菜单.
当我单击子菜单中的项目时,整个页面都会刷新.

如何防止这种情况?

Guhananth.S

Hi,

I have top menu in master page.
When I click an item in sub-menu the full page is refreshed.

How do I prevent this?

Guhananth.S

推荐答案

嗯,您还没有解释很多事情.根据您要执行的操作,您需要将菜单放置在更新面板中,并在面板中进行更改,以避免整个页面回发.

如果菜单用于页面导航,则通常它们是基于页面更改的完整回发.如果您的页面固定并且需要部分更新,请使用更新"面板和脚本管理器.
Well, you have not explained lots of things. Based on what you are trying to do, you need to place the menu in a update panel and make the change in the panel to avoid full page postback.

If the menu is for page navigation then generally they are full postback based on the page change. In case you have a fixed page and partial updates are required then make use of Update panel and script manager.


这篇关于母版页刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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