在应用程序的整个生命周期中,只在MVC中呈现一次母版页 [英] Rendering of master page in MVC only once in the entire life cycle of application

查看:94
本文介绍了在应用程序的整个生命周期中,只在MVC中呈现一次母版页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Everyone,在我的MVC Web应用程序中,我希望我的母版页只会立即渲染,所有剩余的视图和部分视图都会根据用户的请求进行更新...建议我如何实现这一目标。我不想每次刷新我的母版页...







提前thnx



我尝试了什么:



我还没有尝试任何东西寻找解决这个问题的最佳方法..

Hello Everyone,In my MVC Web Application I want that my master page will only render at once and all the remaining views and partial views update as per user's request...suggest me any way that how can I achieve this. I do not want to refresh my master page everytime...



Thnx in advance

What I have tried:

I have n't tried anything just looking for best way to solve this problem..

推荐答案

你在说什么称为单页应用程序(SPA)...

您可以使用MVC创建这样的应用程序(VS中有模板),但是您应该考虑SPA是否适合您的应用程序...
What are you talking about is called Single Page Application (SPA)...
You can use MVC to create such an application (there are templates in VS for that), however you should consider if SPA fits your application at all...


这篇关于在应用程序的整个生命周期中,只在MVC中呈现一次母版页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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