Question regarding Microsoft jQuery plugin for Unobtrusive Ajax
Questions tagged [unobtrusive-ajax]
107 questions
0
votes
1 answer
asp-route-xxx in mvc and unobtrusive ajax not working
I have a series of links using ajax link ('a' tag) like this:
@foreach (int i in Enumerable.Range(1, Model.PagingInfo.TotalPages))
{
string aClass = (Model.PagingInfo.CurrentPage == i ? "btn btn-secondary" : "btn btn-primary");

mz1378
- 1,957
- 4
- 20
- 40
0
votes
1 answer
Microsoft.jQuery.Unobtrusive.Ajax is deprecated. Whats the alternative?
I am updating packages in project codebase to .net 6 (LTS) and all the projects are updated and running successfully in my solution. One package Microsoft.jQuery.Unobtrusive.Ajax with version 3.2.6 when updating says its legacy and deprecated as…

Ali Khan
- 138
- 9
0
votes
0 answers
How to add an anti forgery token to an 'A' link in Net6 unobtrusive ajax?
How to add an anti forgery token to an 'A' link in Net6 unobtrusive ajax?
I have an a link like:

Mattman85208
- 1,858
- 2
- 29
- 51
0
votes
1 answer
my jQuery-validation not validating the form?
I've made the partial view, and, in my form, I add the jQuery validation and unobtrusive jQuery, but my form returns true for ('form').valid().
There is no error on console side. please can anyone help.
0
votes
1 answer
Is jquery-ajax-unobtrusive part of .Net Core
I would like to use jquery-ajax-unobtrusive.js. But I have read on the following page https://www.learnrazorpages.com/razor-pages/ajax/unobtrusive-ajax. That "it is now part of ASP.NET Core and is hosted at GitHub".
The Github repo declares that…

Norbert Norbertson
- 2,102
- 1
- 16
- 28
0
votes
1 answer
Asp.Net Core Unobtrusive Ajax throwing 400 error on live server
My Every form is of type
I…

Basharat Hussain
- 209
- 1
- 3
- 8
0
votes
0 answers
Unobtrusive AJAX, Uploading files and Modals not working - Modal is not getting closed when submited
I am working on ASP.NET Core project and in modal I have a form where I need to upload a file. I am also using unobtrusive AJAX to submit the form. At first I was not able to upload the file, so I fave found this solution:
Upload is null after…

Ivan
- 31
- 2
- 11
0
votes
2 answers
Why has my unobtrusive ajax stopped updating my partial view in ASP.NET Core 3.1?
I'm using unobtrusive ajax inside a kendo window to update a form once it's been filled in. The form should update the Id's of the DOM elements dynamically and also show the relative data inside the form as returned from the controller.
Let's…

Yanayaya
- 2,044
- 5
- 30
- 67
0
votes
1 answer
.Net Core Server Side Model Validation via unobtrusive ajax form
I have a View that uses unobtrusive ajax to submit a form or rather just normal jquery ajax would do the trick as well. For both implementations, I can get it to hit my controller fine and does my ModelState.IsValid validation and then returns my…

SC.Cee
- 237
- 1
- 4
- 14
0
votes
2 answers
How do I serialize the unchecking of checkboxes?
I am trying to use unobtrusive-ajax to allow a site to update its contents as AJAX if JavaScript is available and as static pages if not. I'd like to support the browser's Back button moving backwards in history.
I am using JavaScript's history API…

MichaelMitchell
- 99
- 1
- 4
0
votes
0 answers
Ajax calls stop working while using MVC Custom routes
I have defined custom routes for user friendly URLs.
But unable to call default route using ajax or on using Ajax.BeginForm() On removing custom routes, all works perfectly.
This is my RouteConfig.cs
//product view route
…

CHIRAG SUDRA
- 13
- 3
0
votes
0 answers
dynamic form ajax beginform validation error - MVC
Implementation Detail:
Page has Add Button and Table view
On Add button click, partial view (form) is loaded on Modal PopUp. Dynamic form selected based on parameter.
On Add button click below code is used to bind the partial view form to div
…

Sridhar
- 473
- 3
- 15
0
votes
2 answers
Ajax button is raising this error:- The server has not found anything matching the requested URI (Uniform Resource Identifier)
I am working on an Asp.Net MVC core web application, and i have added the following form inside my razor view, to build an Ajax form:-
0
votes
1 answer
Can you have 2 buttons in a form, when using Unobtrusive AJAX in Razor Pages?
I have 2 OnPost handlers in the PageModel for a form, is there a way to run Unobtrusive AJAX with different post handlers on each button? I can't seem to find anything on this. Or is there a better way of achieving this through JQuery?
Both handlers…
0
votes
1 answer
Ajax.BeginForm Post not able to bind a list of objects within a PartialView
I am attempting to set up a PartialView that displays a list of objects, which contain a boolean property that the end user will check off. Upon submitting, the PartialView should perform an AJAX POST in order to pass that list of objects to another…

C Murphy
- 47
- 1
- 13