阅读背景:

在mvc中,如何在使用基于表单的模型绑定和javascript序列化时获得响应?

来源:互联网 

I created a form in MVC originally using javascript serialization and jQuery to $.post() to the controller method. This was working fine except a single field wasn't being bound to a method argument for some reason so I switched to the MVC built-in model binding instead which fixed this issue. The result of this, though, is that I'm cut off from my response messages. My validation messages still show up fine but things like "alert('saved')" don't work and I can't figure out how to do other things like conditionally refresh the page and such.I created a form in MVC originally using javasc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: