All Questions
12 questions
0
votes
1
answer
211
views
async jQuery ajax method always posting null data to API
I wanted to take advantage of async in JavaScript, but the function will simply not POST the data to the API (it's ALWAYS null, be it a simple variable or an object). I've scoured around the ...
0
votes
1
answer
1k
views
Trying to do a slightly larger than average AXIOS.post to a .NET Web API
I'm trying to do an AXIOS.post in a Vue.JS application. It seems that when I get over about 1500 characters the process fails. What I mean by fails it does not even go to the Web API. It goes ...
0
votes
1
answer
772
views
With knockout, how to bind an image src to an asyncronous method?
Currently I have a foreach binding with ko with an img tag inside. I want to get this image as a src data string from an authorized web api 2 service.
These images are heavy, so I don't want to load ...
1
vote
2
answers
2k
views
400 (Bad Request) on a get request which parameter its a url
I am trying to execute a get request with a parameter, the parameter its actually a string, but the string is a url
so I get this error:
react-adal.js:50 OPTIONS https://abc-app.azurewebsites.net/...
3
votes
2
answers
20k
views
405 (Method Not Allowed) on reactjs component
I am trying to call an endpoint with post method.
The code is:
import React, { Component } from 'react';
import { Input} from 'antd';
import Form from '../../components/uielements/form';
import ...
1
vote
1
answer
783
views
modelbinder IsMultiPartContent always returning false. How to upload file with react
I have the following react component
import React, { Component } from 'react';
import { Row, Col } from 'antd';
import PageHeader from '../../components/utility/pageHeader';
import Box from '../../...
0
votes
1
answer
55
views
Unable to get promise in Angular js
I am using Angular HTTP get request to get data from .net web api web service, Both the websites (angular and web services) are deployed on same web server. Here is the service code to get json list ...
1
vote
0
answers
370
views
Odata Web Api 2.2 $batch operation fails
I'm trying to create $batch request with JavaScript for Odata Web API 2.2 v4 service.
I have working patch, post, get and delete on the controller.
I've enabled batchHandler with new ...
0
votes
3
answers
4k
views
Asp.net WebApi Aspose.Cells - export and download excel
I use Aspose.Cells to create excel file.
Actually I'm trying to save xls file on the disk and I can't resolve this problem.
This is my get method.
[Route("xls")]
[HttpGet]
public ...
1
vote
1
answer
150
views
Serialize table data as IEnumerable within asp.net WebApi
I have a web api application , in which I have this code
public class FiltredDriverAgendaModel
{
public int Id_driver_agenda { get; set; }
public string name_driver_agenda { get;...
1
vote
1
answer
363
views
Json parameter casting inheritance web api 2
I am using MS Web API 2 to receive calls from our web page using ajax.
Then I have 2 classes: subscriber and externalSubscriber. Subscriber contains very basic data like a name and id. External ...
1
vote
2
answers
381
views
Unable to post JavaScript object to asp.net web api end point
I have an end-point in ASP.NET WEB API application which looks like this:
[HttpPost]
public dynamic Save(string userId, List<MyObject> data)
{
return null;
...