.net - Ajax.BeginForm return Json for message -


i using jquery unobtrusive ajax , mvc ajax.beginform() validate form via c# server side. i'm replacing form itself.

it's working fine, wondering:

let's form triggering "save database" action , action succeeded. there no errors in form don't want post form client, rather json message triggers success dialog on front end. problem form replace happening. how can force not replace form when json server?

i guess i'm asking is: how can not have div updated other code instead?

i know onsuccess, fired after div replace, want skip replace.

you should jquery ajax post form instead of ajax.beginform kind of functionality. point of ajax.beginform post form , update given target. if want return either partial view or json object, should page replacing , success dialog triggering jquery.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -