0
votes
1answer
36 views

SignalR Generic Hub

I am working on ASP.net Web Api , SignalR , want to send the message to all users , Lock other users while updating when entity updated but want to avoid duplicating code in HUB and Web API ...
0
votes
1answer
43 views

asp.net webapi / jquery : loading an xml stream

I have an ASP.NET WebAPI method that returns a string containing a valid XML document: public class MessageController : ApiController { private readonly MyContextProvider _contextProvider = new ...
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 ...
1
vote
2answers
79 views

Knockout.js - ko.mapping.fromJS - Visible Binding not updating

I am working on a website that updates values on the page every 5 seconds, it calls to a remote database and returns a MVC model through a Get Json call, and call viewModel = ...
3
votes
3answers
108 views

Knockout.js - Update page every 5 seconds with new value

I am just looking into knockout.js with MVC-Web-API and I am trying to create a Hello World page that will update the time on the page every 5 seconds. It is making the call every 5 seconds, I can see ...
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", ...
1
vote
1answer
53 views

webapi won't deserialize string array using $.param

I am trying to call a ASP.NET WebAPI method and pass it a serialized JavaScript object over a GET request similar to a $.ajax POST request. It is working fine except for when the JavaScript object has ...
1
vote
1answer
62 views

Can I serve a HTML response from a POST using the ASP.NET Web API framework?

I have a very basic form on my page: <form action="api/file" method="post" enctype="multipart/form-data"> <input type="file" multiple /> <input ...
1
vote
0answers
226 views

Web API: Upload files via Ajax post

I have this following snippet for uploading files via Ajax post (using Knockout js library) ko.bindingHandlers.fileUpload = { init: function (element, valueAccessor) { $(element).after('<div ...
0
votes
2answers
53 views

Correct web-api controller action method definition for jsonp request

I have a simple web api controller action method: public class WeightController : ApiController { [HttpGet] [AcceptVerbs("GET")] public int GetWeight(int weightId) { return 5; ...
0
votes
1answer
120 views

getJSON Web API works on Development Server but IIS Express 7.5 throws 404 Not found

Using Visual Studio 2012 and its ASP.NET Development Server everything seemed to be running well for my first forays into ASP.NET. My Web API calls using jquery returned data. In deploying to IIS ...
0
votes
1answer
42 views

Apply html template to Json coming from webservice without major coding

I want to pull from a webservice that returns a list of parcels in JSON format. I want to display the results in a html list that is nice and pretty. I did some googling, it looks like there maybe ...
0
votes
1answer
91 views

How to handle response of a POST request in jQuery

I am trying to POST some data to my ASP.Net MVC Web API controller and trying to get it back in the response. I have the following script for the post: $('#recordUser').click(function () { ...
0
votes
1answer
48 views

Configure webapi in Windows Forms to accept CROS

I'm doing a project for college where one WebSite sends commands to a Windows Forms application. This application is Responsible for access to serial port and send and receive commands. Communication ...
0
votes
3answers
77 views

jQuery ajax call to WebApi works on IE but not Firefox, Chrome or Opera

I have a test web page for calling a WebApi URL and getting a reply. It works as expected in IE, but none of the other browsers. Here is the jQuery call I make $(document).ready(function() { ...

1 2 3 4 5 9
15 30 50 per page