asp.net mvc 3 - Ajax.BeginForm OnSuccess not executed after Submit -
i trying use jquery dialog edit data in webgrid. everythings works fine until form submitted, instead of return current page open browser goes url of controller action. using html.actionlink in webgrid adds jquery behavior button webgrid, , works fine. opens view in jquery dialog. dialog defines 2 buttons: update button , cancel button. clicking cancel button nothing. clicking update button takes browser controller url edit action item id. have jquery.unobtrusive-ajax.js library defined , added unobtrusivejavascriptenabled key in web.config file, although not sure it's needed. has experienced behavior, appreicated!
i've experienced problem in 2 situations:
- the event handler not being binded form's submit event, or not suppressing default behavior (through
event.preventdefault();
orreturn false;
). - there error in event handler, causing fall default behavior.
well how can try without source.
Comments
Post a Comment