如何在MVC中完成状态管理? [英] How state management is done in MVC?

查看:138
本文介绍了如何在MVC中完成状态管理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是MVC的新手,我很想知道以下事情:



1.我们知道web是无状态的,在ASP.Net中我们有很多用于状态管理的客户端和服务器端技术。现在,在这个新模式MVC中,我们不使用它们吗?



2.如果没有,那么它如何解决快速反应的问题?



3.如果是,怎么样?众所周知使用了哪种技术?



如果上述主题有任何好文章,链接到它们也会有所帮助。



提前致谢。

Hi,

I am a newbie in MVC and am curious to know the following things:

1.As we know web is stateless and in ASP.Net we have so many client and server side technique's for state management.Now, in this new pattern MVC, are we not using them?

2.If no,then how is it solving the issue of quick response?

3.If yes,how? and what technique's among the well known are being used?

If there is any good article on the above topic,link to them will also be helpful.

Thanks in advance.

推荐答案

查看以下链接



http://www.slideshare。 net / jinaldesailive / state-management-in-aspnet-and-aspnet-mvc-jinal-desai-net [ ^ ]



< a href =http://forums.asp.net/t/1895840.aspx?How+to+manage+states+in+mvc+Application> http://forums.asp.net/t/1895840.aspx ?如何+管理+状态+ + + mvc +应用程序 [ ^ ]



http ://www.dotnet-tricks.com/Tutorial/mvc/906b060113-Controlling-Session-Behavior-in-Asp.Net-MVC4.html [ ^ ]



初学者ASP.NET状态管理教程 [ ^ ]
go through the below link

http://www.slideshare.net/jinaldesailive/state-management-in-aspnet-and-aspnet-mvc-jinal-desai-net[^]

http://forums.asp.net/t/1895840.aspx?How+to+manage+states+in+mvc+Application[^]

http://www.dotnet-tricks.com/Tutorial/mvc/906b060113-Controlling-Session-Behavior-in-Asp.Net-MVC4.html[^]

A Beginner's Tutorial on ASP.NET State Management[^]


导航以下链接:

什么是ViewData,ViewBag和TempData? - 用于在当前请求和后续请求之间传递数据的MVC选项


在ASP.Net MVC中,ASP.Net中除了视图状态之外的所有状态管理都可用。



ViewData,ViewBag和TempData对象是MVC中的新对象。



当您在ASP.Net中使用会话,cookie或隐藏变量时,您可以在MVC中使用



希望您了解HTTP如何维护状态。



如果您有任何澄清,请通知我。
In ASP.Net MVC all the state management available which are there in ASP.Net except view state.

ViewData, ViewBag and TempData object are new one in MVC.

As you are using session,cookies or hidden variable in ASP.Net same you can use in MVC

Hope you aware how HTTP maintain the state.

Please let me know still if you have any clarification.


这篇关于如何在MVC中完成状态管理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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