1

I am using Ajax.BeginForm() helper function provided by ASP.NET MVC. One functionality that is missing is the support of async=false. In other words, Ajax.BeginForm does the asynchronous request. But I would like to do synchronously. I know I can use jQuery ajax to do this. Another option might be to change the jquery.unobtrusive-ajax.js file to support this. I am wondering whether I can extend Ajax.Beginform() helper so that it will write data-async = false when renders to the view page. Any idea about how to extend this helper?

1
  • I would strongly, strongly suggest restructuring to make async work instead of fighting it. Commented Feb 25, 2014 at 3:55

1 Answer 1

1

If you don't want Ajax, why not use Html.BeginForm instead? Is there a specific reason why you're using the Ajax helper if you don't want the functionality?

Sign up to request clarification or add additional context in comments.

2 Comments

I want to update a portion of my page. But I want to do it synchronously.
If Ajax.BeginForm receive PartialView how to access new DOM objects ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.