How do I handle page flow in MVC (particularly asp.net)

后端 未结 5 1864

If you had to provide a wizard like form entry experience in mvc how would you abstract the page flow?

5条回答
  •  猫巷女王i
    2021-02-10 01:40

    Investigate the post-redirect-get pattern.

    http://weblogs.asp.net/mhawley/archive/tags/MVC/default.aspx
    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.

提交回复
热议问题