How do I maintain ModelState errors when using RedirectToAction?

后端 未结 5 1535
南笙
南笙 2020-12-01 03:42

I have some code that saves a ticket in our system. If there is an error it does a RedirectToAction. The problem is that I don\'t seem to have my errors in the new action.

5条回答
  •  猫巷女王i
    2020-12-01 04:37

    this blog post describes how you could implement the PRG-Pattern in MVC http://blog.simonlovely.com/archive/2008/11/26/post-redirect-get-pattern-in-mvc.aspx

    hth

提交回复
热议问题