All Questions
9,114
questions
0
votes
1
answer
64
views
accessing c# web assembly from javascript in .net MVC [duplicate]
I need to access some c# code from javascript in MVC ,NET (not blazor).
I have the below. This is very specific to .NET and MVC stack and not a generic ajax question like another one in stack overfow. ...
0
votes
1
answer
58
views
Cannot transfer object collection from view to controller
I am not able to transfer collection objects from View to Controller in my ASP.Net Core MVC C# application. In my Index.cshtml, I have a jQuery datatable and I able to load data into that jQuery ...
1
vote
1
answer
59
views
Unable to execute Action in another controller using AJAX call
I am trying to execute code in my MVC application that in my web application, a user when logging in, will have to verify their phone number first before they can click on any menus in my application. ...
1
vote
2
answers
57
views
.NET Core Ajax Call to Controller
This is my Index.cshtml:
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Welcome to SyncFusion</h1&...
0
votes
0
answers
43
views
change in one dropdownlist according to another dropdownlist by ajax in asp.net
I have two dropdownlist one with name and another with contactno on selecting name corresponding contactno want to show by ajax in .net.
Here is my load event [ in which dropdown is bind ]
service....
0
votes
2
answers
91
views
What is different in my Ajax vs XMLHttpRequest Call that lets my Server understand Ajax but not XMLHttpRequest?
I have a very simple server call like this:
[HttpPost]
[AllowAnonymous]
public JsonResult Test(TestRequestModel requestModel)
{
//do stuff
return Json(new { result.Success });
}
My ...
0
votes
1
answer
43
views
pass custom class with IFormFIle and List<object> via Ajax to .NET Core 8
I have a class PreventivoDS
public class PreventivoDS
{
public int Id { get; set; }
public string? CodPreventivo { get; set; }
public string Data { get; set; }
...
1
vote
1
answer
67
views
pass list of objects to controller method using ajax .net core
I know similar questions have been asked before but none of the solutions worked for me.
I have a rather strange issue while passing list of objects to controller method using ajax.
It works when I ...
0
votes
3
answers
65
views
sending image file using ajax to controller action getting null value in action parameter asp.net core
Hi there to all of you.
When I attempt to upload an image file using an Ajax call and send it to the controller action (asp.net core), sometimes I get an image file and sometimes get a null value in ...
0
votes
2
answers
45
views
Posting a form from a partial view with jQuery
I've hit a wall while trying to do something and I hope someone can help me understand what I'm doing wrong. Here is the situation. I have a partial view with a form in it, and when I submit that form ...
-1
votes
1
answer
40
views
.Net Web Controller JsonResult Function return a html code instead of Json format when calling an api
i cannot find any specific issue in google so better post it here, hope there is some solutions.
for more than a week, i am facing this issue. I have a function in my web controller like this
public ...
0
votes
1
answer
52
views
Pass Data from Ajax to method in ASP.NET 8 controller
This is my ajax script that use in jQuery step library. After get data from GET method in several step correctly and get with this Ajax method correctly:
onFinished: function (event, currentIndex) {
...
0
votes
2
answers
98
views
How to get the property's name of an object using jQuery?
this is my form:
<form id="inventoryForm" action="/ManderalMatrix/AddManderalInventory" class="reactiveToButton">
<div class="row" style="...
1
vote
0
answers
79
views
Retrieving string through Ajax in .net 8 Web Application not working if string is 4096 characters or more
I am using Ajax to retrieve a chart that is about 65,000 bytes in base64 from a controller with:
ReturnResult ret = new() { Error = "" };
using var ms = new MemoryStream();
ChrtGraph....
1
vote
2
answers
159
views
ASP.NET Core 8.0 MVC Ajax, passing null into controller
I am trying to submit data into a controller method, in order to add the item to a repo.
I am doing this from a HTML (razor) page using AJAX jQuery.
The form serialises the data, and can read the ...