0
votes
1answer
29 views

Consuming ASP.Net Web API from developer client workstation

I have developed a .Net Webapi which uses Entity Framework and all is functioning correctly using the uri... //mywebserver/webappfolder/api/mycontroller?val=1&val=2&val=3 The EF and API are ...
0
votes
0answers
23 views

ASP.NET Web API Custom Role Provider GetRolesForUser Only Called Once

I am using a custom role provider with Web API. I use the Authorize attribute to specify which roles the user must have on each controller. I use Windows authentication, so the user doesn't need to ...
-2
votes
1answer
34 views

How to render the partial view after getting the data from the Web Api Controller [closed]

I want to render the partial view after getting the data from the web api controller action. I want to do the following operations: Need to get the data from the web api controller using post method ...
0
votes
2answers
50 views

jQuery ajax - call various MVC controller actions

I have a controller (RequestsController) with several actions (all taking one parameter) For example: public List<Models.AcceptRequests> GetAllAcceptRequests(int passedId) public ...
0
votes
0answers
76 views

calling asp.net web api Action with multiple parameters

I have action method like this: [AcceptVerbs("POST")] public void AddContact(int id, UserProfile userProfile) { } and I making the call like this: $.ajax({ url: "/api/UserProfiles/AddContact", ...
0
votes
1answer
126 views

Webapi ajax formdata upload with extra parameters

I'm using jQuery ajax to upload file but want to add some parameters on webapi method, here is: var data = new FormData(); data.append("file", $("#file")[0].files[0]); data.append("myParameter", ...
0
votes
1answer
72 views

Change Web API Response Formatter

I've an APIController on SelfHost Configuration that generates responses like XML Documents: public XmlDocument Get(int id) { XmlDocument doc; doc = repo.get(id); // simplified if(doc != ...
0
votes
2answers
82 views

to pass parameter to web api through ajax call

I have below ajax query which returns me json from controller $(document).ready(function () { $.getJSON( "api/OutletPOC/GetHomeTab?bizId=1", function (data) { ...
0
votes
0answers
141 views

Load details of selected row in kendoui via Ajax

I have a KendoUI grid below in MVC 4 that uses WebApi and OpenAccess ORM. The kendoui grid is loaded with contents and when a row is selected I want to load the details right below the grid by getting ...
0
votes
2answers
209 views

Getting the “no type was found that matches the controller named” error message during Ajax Request

I've seen a lot of topics about this, but unfortunately I believe that each case is a different case (or most of them), and I really would love some experts opinion about my case in particular since I ...
0
votes
3answers
157 views

Web API - Simple Post model with collection property is not binding

// Server-side Model to bind public class CurrentPipelineRequest { public List<string> Usernames { get; set; } } // Controller [HttpPost] public HttpResponseMessage ...
0
votes
1answer
92 views

Why I got my model attributes null during a put request in web api?

I send a PUT request from my View to web API controller using JQuery and Ajax. It hit my web api controller but my model attributes are null. Here Is my Controller Code: public HttpResponseMessage ...
0
votes
2answers
40 views

Rreading asp.net web api

I am working with a web api which returns product lists and price. The product list is displayed on page using Ajax. The prices gets updates regularly. The only way i know how to tackle problem is ...
0
votes
2answers
138 views

Why $.ajax() 'error' function is invoked when the response status is 200/OK?

I am trying to 'GET' data from my WebAPI using JQuery $.ajax(). Here is my code: $.ajax({ type: "GET", url: ...
1
vote
1answer
415 views

cross domain ajax POST to web-api always return empty response

I want to POST HTML form to web-api. If I execute ajax POST with jQuery in other domain everything is OK and I receive 200 OK but in firebug and response tab I receive blank response like below ...

1 2 3 4
15 30 50 per page