Skip to main content

All Questions

0 votes
2 answers
78 views

How to auto update reason based on request No using JavaScript ajax?

I work on asp.net mvc i face issue i can't auto update reason using java script ajax auto update meaning when user start writing on reason it will save on database table Automatically based on Request ...
ahmed abdelaziz's user avatar
1 vote
1 answer
59 views

How to pass all model properties with values to Approve Index Action when click approve button?

I work on an ASP.NET MVC application. I face an issue that I can't pass model ResignationRequester properties values to ApproveIndex action method when clicking on the "approve" button. All ...
ahmed abdelaziz's user avatar
0 votes
1 answer
68 views

Text fields not updating with user detail from VIEW button

Im writing an application that connects to an API and allows users to do CRUD operations In the Frontend. I Have a button on each row in a table that is called 'View' once clicked, it should copy the ...
Jarryd vn's user avatar
1 vote
1 answer
132 views

Is there a way to decode a Bad request (400) using JQuery as string in the error function? [duplicate]

I have a JQuery function which requests data from an asp net API. When this API throws a bad request in the form of a string, I want to get this in the error function as a string. My API bad request ...
codeninja's user avatar
  • 315
1 vote
1 answer
51 views

Javascrpit AJAX: Problems with Get Method (using Web-Api Core)

I have problems doing a simple ajax method and I have zero idea how to do it since most of my work was done by tutorials that don't explain the backend part of their app and don't have good examples. ...
José Leal's user avatar
-1 votes
1 answer
264 views

An extremely simple AJAX "HTTP GET" request using jQuery 's $.ajax() method does not Work for me. Backend is a ASP.net WEB API controller

Im trying to learn basics of WEB API, Im very beginner. I connected a HTML webpage to a get method in a WEB API controller in c#, using AJAX request with XMLHttpRequest object successfully. But Im ...
Magicco's user avatar
  • 31
0 votes
1 answer
284 views

Trying to get file response from ASP.NET Web API

I have migrated some methods from a MVC controller to a Web API controller and now I have this method: [HttpPost] [Route("api/Request/UploadImage")] public IHttpActionResult ...
LukePerrin's user avatar
0 votes
0 answers
35 views

How to make ajax call from .Net Core API in Cross Origin (CORS)? [duplicate]

I have two projects in .Net Core 6. The first one is.Net Core Web Application and the second one .Net Core Web Api. Now In .Net Core Web API I have a Controller. When I run both project and and enter ...
Biraj Dahal's user avatar
0 votes
0 answers
276 views

System Data OleDb OleDbException: 'Data type mismatch in criteria expression.'

This is the error: Access database table: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System....
Yarin M's user avatar
0 votes
0 answers
853 views

ASP.NET Web API very slow while controller code is fast

asp.net .net 4.7 web API I am accessing a ASP.NET web API via jQuery. JQuery collects a number of ids and sends one ajax request per id. If there is 1 id the query is processed in 6-10ms If there is ...
Lambda's user avatar
  • 1,390
0 votes
1 answer
191 views

ajax call to "asp.net core WebApi" returns a strange/weird value

I have api controller that returns one object that contain two lists of objects. I expect that I will get this result when I call this api using ajax: one object that contain a long value and two ...
Shadi Fayed's user avatar
-1 votes
1 answer
56 views

Getting Error 400 When Calling A Web Api Method Using Ajax

I am trying to call a local Web Api method using Ajax. So I have a basic web api app running on visual studio on my local machine. Here's my ajax call let RegisterUserVM = new Object(); RegisterUserVM....
ShatterStar's user avatar
0 votes
0 answers
162 views

Value cannot be null. Parameter name: entity USING HTTPPOST METHODE

Hello when i use Post methode using Web API i was not able to add it to database. I used Jquery to call api POST METHODE While using postman i was able to post some data to database. I guess the ...
patrick's user avatar
-1 votes
1 answer
84 views

ajax sending null to MVC Api Controller

I am trying to send the variable as vm from view to API Controller by Ajax but in controller the parameter of method that get it is null! the error is : An exception of type 'System....
Amirhosein Araghi's user avatar
0 votes
1 answer
1k views

API calling Code working on localhost but not on server

Locally code working fine but when uploaded to server showing 500 [Internal server error] I have tried with single parameter but not working on live environment Parameters are in JSON.stringify(...
3338_SON's user avatar

15 30 50 per page
1
2 3 4 5
16