Questions tagged [asp.net-ajax]

A set of extensions to ASP.NET developed by Microsoft for implementing Ajax functionality.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Implementing an ajax call within another ajax call

I'm trying to replace the view with another view returned by a method: [HttpGet] public ActionResult Info(int personid) { ... return View("...", ...
LiquidSnake's user avatar
0 votes
0 answers
22 views

I Want To Download All Data From Data Table But Its Currently Downloading The Current Page Data I Want To Download For All Pages

{ extend: 'excel', exportOptions: { modifier: { pages: 'all' }, columns: [0, 1, 2, 3, 5, 6, 7, 8, 9, 10, 11, 12, 14], format: { ...
PRAJWAL RAJ's user avatar
0 votes
1 answer
39 views

Ajax POST not working without parameters in the URL

Google apparently is not my friend as I have tried many of the suggestions found, yet, none have worked for me. I have 2 simple inputs as follows: <form id="form"> <fieldset id=&...
muttBunch's user avatar
  • 125
0 votes
2 answers
24 views

Get excel data and post to server side using ajax

I am trying to gather the data from excel using the js and ajax var ExcelToJSON = function () { this.parseExcel = function (file) { var reader = new FileReader(); reader.onload ...
hey hej's user avatar
0 votes
0 answers
19 views

Upload a text file in Ajax call to the C# controller

In my HTML code I have an input type file and a button to upload: <div class="p-2 align-content-center"> <input class="form-control form-control-sm" type="file&...
user22523049's user avatar
0 votes
0 answers
27 views

Why is an Ajax script not defined in ASP.NET MVC?

I added tinymce rich text editor to my ASP.NET MVC on .NET 4.7.2 web app. The problem is: I can't post rich text content because of ASP.NET antiforgery-block. So I am trying to get the AF-token into ...
Utility Monster's user avatar
0 votes
0 answers
34 views

autocomplete display employee name become hidden after 1 second or less why?

I working on asp.net MVC project . I face issue after display Line Manager Name on autocomplete . autocomplete functionality working success but issue happen after display data on input . Line Manager ...
ahmed abdelaziz's user avatar
-1 votes
1 answer
34 views

Post method doesn’t work in ASP.NET Core Razor pages

I'm trying to submit my form to the database, but when I click on confirm button, I get this error: . This is my form: enter image description here This is my index class: enter image description here ...
melika's user avatar
  • 1
1 vote
1 answer
48 views

Data Listing with Ajax (Only Last Data Coming) [SOLVED]

I am developing a project with ASP.NET Core. I want to pull data from the database with Ajax without posting the page. But only one and the last saved data comes. I can see other data in the console. ...
gkmnada's user avatar
  • 70
0 votes
0 answers
61 views

Why is the browser not showing the HttpOnly flag sometimes?

We have an ASP.Net Core 3.1 application with Razor pages that makes requests with AJAX and runs and IIS verson 10. There is a session cookie being set using the following code: services.AddSession(...
Davia's user avatar
  • 73
0 votes
0 answers
23 views

Can't get data from ashx.cs file

Hello I define an object then serialize it in my ashx.cs file like this and everything from server side is ok and no problem with getting data from the server but it doesn't go to javascript side: ...
PEDRAM POURHAKIM's user avatar
1 vote
0 answers
62 views

How to get data from ASP.NET Core MVC using Ajax with Datatables?

I have this problem when trying to pass a string parameter from DataTable with Ajax to an ASP.NET MVC controller. I have a problem when I using ASP.NET Core MVC with datatable and ajax. Please kindly ...
Puthea Cam's user avatar
2 votes
0 answers
58 views

Asynchronous Ajax Calls giving "Caution: request is not finished yet in chrome" when performing operation in Partial View Page

I have a HistoryController.cs, index.cshtml , some javascript code and three partial views. In index.cshtml I have three partial views in the form of tablist which are hidden at first. When I click a ...
rohan's user avatar
  • 53
0 votes
0 answers
16 views

Facing issue calling user control code behind method from Js file

I am trying to call Usercontrol code behind method from the Javascript file which is in a shared location. Js file code present in shared location function ValidateParams(fromdate,Id) { var exp=/^((((...
AMDI's user avatar
  • 915
0 votes
1 answer
47 views

Difference between [WebMethod] and [AjaxMethod] in Asp.Net

Can someone who has experience with [AjaxMethod] attribute please explain which scenario we can use [AjaxMethod] over [WebMethod]. I need to call asp.net method from javascript function I googled and ...
AMDI's user avatar
  • 915
0 votes
1 answer
60 views

error 400 when try to make ajax request with type post to function OnPostshiftDataUp

I am working with Asp.Net Core Razor Pages. I get an error when trying make ajax request to access OnPostshiftDataUp ERROR : Failed to load resource: the server responded with a status of 400 () ...
ahmed abdelaziz's user avatar
0 votes
0 answers
35 views

Call Asp.net method from JavaScript file

I am having a default.js file in shared folder. Dynamically we will send aspx file name and function name and the parameters to call corresponding aspx page and method. Default.js method function ...
AMDI's user avatar
  • 915
0 votes
0 answers
10 views

AjaxControlToolkit.HTMLEditor override to remove options - issues

I've code directly from this article: https://learn.microsoft.com/en-us/aspnet/web-forms/overview/ajax-control-toolkit/htmleditor/how-do-i-use-the-html-editor-control-cs ...but have an issue when ...
Mark Smith's user avatar
0 votes
0 answers
28 views

Html.AjaxBeginForm not calling the Action in the Controller in ASP.Net Core

I've been going through the headache of upgrade Umbraco CMS from 9 to 11+ .Net Core. I seem to be having issues with a Predictive Search function now not calling the controller action. I can't seem ...
Jasee's user avatar
  • 27
0 votes
0 answers
45 views

Use ajax to post form data to .net core mvc model-less controller action

I have thirty-something forms that I am designing to allow partially completed forms to be saved in a table until the user returns to the form. I currently have it working, but I have to create ...
Chris Woodard's user avatar
0 votes
2 answers
58 views

AJAX asp:UpdatePanel with a asp:Timer never refreshes

I thought I would experiment with a timer and update panel. I have a simple page that I put an updatepanel control, a label, and a timer. The "TICK" code updates the label with the current ...
Ken Yankee's user avatar
1 vote
0 answers
50 views

Why does my category dropdown become blank after selecting a service in my ASP.NET MVC web application using AJAX?

Hy, my developer friends! I am facing an issue in my web application project that is developed in C# in dotnet technology using MVC framework. The database is SQL Server. I am creating a booking form ...
ZarishKhalil's user avatar
0 votes
1 answer
59 views

AJAX bring the complete file instead data - VB.NET

hope you can help me with this issue. I'm trying to get a list from the server side to javascript, using AJAX and VB.NET. I tried several things but it always return the complete file instead the list....
Marina 's user avatar
0 votes
1 answer
84 views

Ajax file upload in .Net 6 Razor pages sends Null in the codebehind

Already tried This Answer but it did not work. So seeking help. I have a .Net 6 Razor page from where I am trying to upload a file. Here is my AjaxFileUpload.CSHtml <h3>Ajax File Upload</h3&...
Bluemarble's user avatar
  • 1,927
0 votes
0 answers
32 views

Jquery Upgrade breaking parts of application

We currently have asp.net mvc application that uses Jquery 1.12.3 and Jquery UI 1.11.1 versions. I am upgrading the jquery to latest versions 3.6.4 or 3.7 and jquery ui to 1.13.2. Ajax calls from ...
user1098028's user avatar
0 votes
1 answer
25 views

Why dictonary object to json to fill dropdown does not preserve order list

I'm trying to populate drowdown list in jquery from my controller method which return ordered dictionary object for key value pair. but when my drop down list filled, it does not preserve the order ...
Sandy's user avatar
  • 199
0 votes
0 answers
35 views

Ajax call does not work second time. controller action is not hitting second time

I'm facing some weird issue, my ajax call to controller action isn't calling second time. first time it gets called and breakpoint is getting hit. but second time it's not even view displayed with ...
Sandy's user avatar
  • 199
0 votes
0 answers
22 views

Ajax call not passing data to controller

Been searching for hours...probably something obvious I miss. My controller don't get the data Been doing several workarounds passing data differently but nothing works Here is my JS : $('#cfr_btn')....
Polyzack's user avatar
0 votes
1 answer
64 views

How do I hide a div when last task in an array is deleted?

I have a section on the edit page that gets filled with a message or a selection box depending on if the user has tasks to edit or not: <div class="containerwrapper"> <h3 id=...
Mihailo Mitrović's user avatar
0 votes
0 answers
45 views

charts not appearing for ASP.NET MVC

I'm still a beginner in ASP.NET MVC, I created charts for one of my models and it worked; when I tried that same method for another model I have in the same project, it didn't work. the controller (...
mariem's user avatar
  • 23
0 votes
0 answers
128 views

ASP.NET Core MVC 6 jQuery Validation not working on AJAX Post

I am dynamically creating create/update form on a bootstrap popup model using AJAX. When a user clicks, add or edit, a model will be visible with the create/update form. I want to do a jQuery ...
WorkInProgress's user avatar
0 votes
0 answers
23 views

How to send data from JQuery to C# Code Behind using Ajax?

I am trying to get send an array of strings for the ID, and ints for the Display sequences to my C# code behind. I can currently cause breakpoints to be triggered in the function in the controller but ...
Cade's user avatar
  • 11
0 votes
1 answer
61 views

How to send multiple formdata using ajax and each from data have multiple images in asp.net core web app

How to send multiple formdata using ajax and each from data have multiple images in asp.net core web app and data asp.net core web api. I need to save product variants with variant images. I am able ...
Professor's user avatar
-1 votes
1 answer
58 views

Pass multiple ajax data to form using asp.net core razor pages

I am trying to pass jquery data values to another page's form. I've tried the suggested solutions I found in the net but still no luck. On my Screenshot, the solution I am thinking is to add the data ...
Markeeh's user avatar
0 votes
1 answer
21 views

Post files using ajax is returning 400 error

I'm trying to do a file upload in a razor page web app. But it's returning 400 error. What am I doing wrong? HTML: <input type="file" id="myFile" name="filename"> &...
Linda G's user avatar
  • 21
0 votes
0 answers
29 views

@using(Html.BeginForm("Action method","Controller","FormMethod.Post", new {id=ViewBag.id}))

When I am using the html.begin some of the JavaScript functions aren't being loaded. I am using partial view and I am calling the partial view page using AJAX in the main page and adding the partial ...
Sadiq's user avatar
  • 11
0 votes
0 answers
80 views

how to retrive data from database and bind into html form by using ajax in asp.net core

how to retrieve data from SQL server into html form textboxes by using ajax call in asp.net core ? (or) retrieve data from SQL server into html form textboxes in asp.net core?
Himabindu's user avatar
0 votes
0 answers
68 views

append element in jquery with increment count

I have a form where i am getting insurance information from a person . to make the form attractive i am added jquery append feature to clone/repeat the div again and again to a particular number . I ...
stephendanial's user avatar
0 votes
0 answers
16 views

Ajax .done before return value

I have this function: function getLink() { if (linkTypes.length == 0) { $.ajax({ type: "GET", url: "/theServiceToCall.html", ...
Try_hard's user avatar
0 votes
0 answers
24 views

Streamed Response on ASP.NET being printed ad the end and not during the call

I'm trying to send a intermediate messages from a server to an AJAX call. I understood I can do this sending a streamed response back to the caller, and using it through the progress function in the $....
Lorenzo's user avatar
  • 45
0 votes
1 answer
71 views

AJAX method won't pass parameter to a controller (C#)

I have tried like 10 solutions to make it work but it doesn't help. I'm trying to send parameter to a C# controller but everytime my parameter on controller side shows value of null. Here is my code: ...
Stefan's user avatar
  • 9
2 votes
1 answer
151 views

"Reference to type Routevaluedictionary claims it is defined in system.web, but it could not be found" While using Ajaxextension command

The error in the title occurred in ASP.NET MVC and C# This is the error I want to use Ajax, but it does not work; Visual Studio does not recognize Ajax
Akash A's user avatar
  • 27
0 votes
2 answers
458 views

Passing a List of Json Objects to a Controller using Ajax

In converting from framework 4.72 to .NET 7 (VS 2022) I am having trouble passing a complex JSON object from the view to the controller. Of course this works in Framework but I have not been able to ...
earlxtr's user avatar
  • 350
0 votes
0 answers
31 views

How to process model state errors in JavaScript into asp-validation-for attributes

The frontend HTML input field looks like <input asp-for="Material.ValidTo" class="form-control" type="date" /> <span asp-validation-for="Material.ValidTo&...
Muflix's user avatar
  • 6,212
0 votes
1 answer
54 views

Transfering Id Data From View To Partial View And Then To Controller In .NET MVC Web App

I am trying to send an Event id (Model name is event) from my event view to a partial view in which you could comment on that related event (which is encuptulated by that view and rendered via ajax) ...
Furkan Koç's user avatar
0 votes
0 answers
49 views

ASP.NET Core MVC razor autocomplete some browser on production gave 404

I have implement autocomplete for search text box on my site. it is working perfectly on all browsers. But after production I got 404 error when I use Edge browser and samsung browser too. But at same ...
FSD's user avatar
  • 375
0 votes
1 answer
137 views

Asp.net returning whole page

I've been trying to develop a site which has a login system. As part of that I want to make an AJAX call to the server to handle the login system with the username and password. When I make the call, ...
Fitchings's user avatar
1 vote
1 answer
321 views

Programmatically Change Bootstrap Checkbox Switch to OFF on success completion of AJAX script

I have an HTML Form that contains a Bootstrap Checkbox Switch on an Employee screen. It hides the fields to change a password. When you click it, it reveals them. (Click it again and it hides them ...
MarkJoel60's user avatar
0 votes
1 answer
126 views

ASP.NET Core MVC view Ajax: retrieved list shows up as 'undefined' in table

I'm trying to retrieve the values from a List<> in my controller to populate a table in my view. I can get the data and call the Ajax method to populate the table, but all fields show up as '...
SpastkChild's user avatar
1 vote
1 answer
98 views

302 found and the data is not returned using ajax in the MVC

I am using AJAX call in JS and calling a controller and action method with the url I ran the code in my local it is working fine but when it was deployed in production the AJAX call didn't get the ...
sadiqshaik's user avatar

1
2 3 4 5
106