Question regarding Microsoft jQuery plugin for Unobtrusive Ajax
Questions tagged [unobtrusive-ajax]
107 questions
1
vote
0 answers
MVC unobtrusive ajax: send textbox value as query string with ajax action-link GET request
In the sample code below, I have ajax action-link sending out a GET request. I want to send the value of Message text-box as query string for the request. I know this can be done with ajax-forms. But I was wondering if there's anything I can put in…

achhetri
- 11
- 2
1
vote
1 answer
MVC Ajax ActionLink replaces the entire bootstrap modal-body
The Ajax.ActionLink below has an empty AjaxOptions. Surprisingly it automagically renders the ajax response into the modal and replaces the entire .modal-body element. My intention is to render the response into the #ItemCommentModalBody div. No…

mortdale
- 382
- 4
- 16
1
vote
2 answers
ASP.NET MVC : unobtrusive-ajax for dynamically added forms
I'm loading an Ajax Form inside a popup. the popup content is written client side.
unobtrusive-ajax is not triggered by the form. and its events are not called.
This is because of loading the Ajax Form dynamically. and unobtrusive-ajax is not binded…

Manoochehr Dadashi
- 715
- 1
- 10
- 28
1
vote
1 answer
JQuery.unobtrusive.ajax is not working with the "cancel" class (MVC 5)
I have been banging my head against the wall trying to get this to work and I have finally decided to ask for help. I have two submit buttons in my form. One submit button is to allow the user to go back. It needs to be a submit button because I…

marocano1
- 87
- 3
- 8
1
vote
0 answers
Problems with Ajax.BeginForm when dynamically loaded
I have a search page on an ASP.NET MVC5 application. There is a dropdown in the corner and if you select "User Search" the search filters for users appears. If you select "Task Search" the search filters for task shows.
These filters are being…

Lotok
- 4,517
- 1
- 34
- 44
1
vote
1 answer
Using jquery.unobtrusive-ajax.js on @Ajax.ActionLink in ajax loaded partial views
In _Layout.cshtml:
@RenderBody()
@Scripts.Render("~/scripts/jquery.unobtrusive-ajax.js")
Running the script activates all the @Ajax.ActionLink in index.cshtml.
Some ajax action links load a partial view via ajax, and these partial views include…

allenylzhou
- 1,431
- 4
- 19
- 36
1
vote
0 answers
JQuery Unobtrusive AJAX Doesn't Work
It stopped working recently and I'm not sure why (ASP .NET MVC 4, jQuery 1.8.3). All things using unobtrusive ajax on my site (validation, Html.Ajax, Ajax.ActionLink, etc) simply do a regular post instead of an AJAX post.
My only clue is
Uncaught…

Jeff
- 35,755
- 15
- 108
- 220
1
vote
2 answers
MVC 5 Ajax Issue
I'm learning MVC5 and I'm trying to implement a simple page to add and display students. The question takes lot of space but is extremely basic.
So here is the model:
public class Student
{
public int StudentId { get; set; }
public string…

Ashish Charan
- 2,347
- 4
- 21
- 33
1
vote
2 answers
Loading different scripts versions depending on IE version
I have an asp.net mvc 4 web application that must be compatible with IE 7 to IE 10 and then depending on the IE used I have problems with some scripts version (jquery, etc.) so under my root scripts folder I have created a new folder called OlderIE.…

Willy
- 9,848
- 22
- 141
- 284
1
vote
1 answer
Result not showing with unobtrusive ajax in mvc 3
I'm trying to implement a little ajax using unobtrusive ajax of mvc 3. Here is the code snippet:
Controller:
[HttpGet]
public ActionResult ViewEmployee()
{
return View();
}
[HttpPost]
public ActionResult…

Badhon Jain
- 938
- 6
- 20
- 38
1
vote
1 answer
Postback on partially loaded view brings null model
My application have page with few search boxes. When user clicks on respective search button a result grid is expected to load. That grid have few editable controls in which user can modifications and hit save button if needed to save the data.
We…

lame_coder
- 3,085
- 3
- 19
- 21
1
vote
1 answer
Partial View not updated in IE
I have a Razor view with cascading dropdown lists. The parent list is ajax-enabled and uses jquery.unobtrusive-ajax.js. The child list is a partial view:
@Ajax.DropDownListFor(model => model.ParentId,
(SelectList)ViewBag.ParentId,
…

Paul Taylor
- 5,651
- 5
- 44
- 68
1
vote
2 answers
Get calling form in OnSuccess
function postDone(result,two, three) {
$('.parentForm').replaceWith(result);
}
I don't like this because if there are multiple forms…

AaronLS
- 37,329
- 20
- 143
- 202
1
vote
1 answer
Getting error while using unobtrusive ajax in mvc 3
I'm trying to make a ajax request from my view, which will post & get some data at the same time. I want to use the retrieved data to update a div content on that view page. Here is the code:
My View:

user1784622
- 639
- 1
- 5
- 9
0
votes
0 answers
.NET Core Razor Pages + ClosedXML + Unobtrusive AJAX = File Download Fail
I'm attempting to allow the user to download a set of data as *.xlsx when they click a button. The code completes without error, but no file is downloaded and I'm stumped.
Index.cshtml