开发者

Exception Causes ModelBinding To Fail

开发者 https://www.devze.com 2022-12-13 16:27 出处:网络
If I receive a generic error in my ASP.NET MVC 2.0 Beta app and catch it.I notice that the next time I post that the model returned to my post is always null.Do I need to clear out the ModelSt开发者_运

If I receive a generic error in my ASP.NET MVC 2.0 Beta app and catch it. I notice that the next time I post that the model returned to my post is always null. Do I need to clear out the ModelSt开发者_运维问答ate error or something?


We were pulling from TempData onModelCreated. When an error occured, TempData was cleared out.

0

精彩评论

暂无评论...
验证码 换一张
取 消