如何处理在MVC(特别是asp.net)页面流 [英] How do I handle page flow in MVC (particularly asp.net)
本文介绍了如何处理在MVC(特别是asp.net)页面流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果你必须提供MVC向导状入行经历你会如何抽象的页面流?
If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?
推荐答案
调查后重定向-得到格局。
Investigate the post-redirect-get pattern.
http://weblogs.asp.net/mhawley/archive/标签/ MVC / Default.aspx的
<一href=\"http://devlicio.us/blogs/tim_barcz/archive/2008/08/22/prg-pattern-in-the-asp-net-mvc-framework.aspx\" rel=\"nofollow\">http://devlicio.us/blogs/tim_barcz/archive/2008/08/22/prg-pattern-in-the-asp-net-mvc-framework.aspx
使用,随着一个强大的域模型(用于跟踪步骤或形式完成状态或者无论你怎么称呼它),你是金色的。
Use that along with a robust domain model (for tracking steps or form completion state or whatever you call it) and you're golden.
这篇关于如何处理在MVC(特别是asp.net)页面流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文