避免在MVC中刷新页面 [英] Avoid page refresh in MVC

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

问题描述





我正在 MVC3 中编写一个Web应用程序,其中包含一个主页(标题/菜单)更改。当我点击菜单中的链接时,它会刷新整个页面,这是正确的,但这会重绘整个屏幕并变得烦人,因为在每个帖子后面整个屏幕都会闪烁。



有没有办法不刷新我的布局页面?

提前感谢您的回复。

Hi,

I am writing a web application in MVC3 which consists of a master page (header / menus) which does not change. When I do something like click on the link in the menu it refresh the whole page which is correct but this redraws the whole screen and becomes annoying because on every post back a the whole screen flickers.

Is there a way not to refresh my Layout page?
Thanks in advance for replies.

推荐答案

http://forums.asp.net/t/1785986.aspx/1 [ ^ ]



检查link.hope它会有所帮助。
http://forums.asp.net/t/1785986.aspx/1[^]

check the link.hope it will help.


尝试使用jquery事件处理程序
try to use jquery event handler


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

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