Use ExpressJS to Get URL and POST Parameters

GET

POST

References https://scotch.io/tutorials/use-expressjs-to-get-url-and-post-parameters http://www.tutorialspoint.com/nodejs/nodejs_express_framework.htm https://www.npmjs.com/package/body-parser-json

Continue reading »

Passing multiple POST parameters to Web API Controller Methods

C# :

JavaScript :

Continue reading »

How To Get ASP.NET Web API to Return JSON

first remove xml format :

accepts text/html requests and returns application/json responses :

Register like so:

References http://stackoverflow.com/questions/9847564/how-do-i-get-asp-net-web-api-to-return-json-instead-of-xml-using-chrome https://github.com/aspnet/Mvc/issues/1765

Continue reading »

Use OWIN to Self-Host ASP.NET Web API and SignalR

Startup.cs

Program.cs

References http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api http://anthonychu.ca/post/web-api-owin-self-host-docker-windows-containers/ http://stackoverflow.com/questions/21634333/hosting-webapi-using-owin-in-a-windows-service http://stackoverflow.com/questions/20068075/owin-startup-class-missing http://stackoverflow.com/questions/16642651/self-hosted-owin-and-urlacl

Continue reading »

Declare a namespace in JavaScript

References http://stackoverflow.com/questions/881515/how-do-i-declare-a-namespace-in-javascript https://javascriptweblog.wordpress.com/2010/12/07/namespacing-in-javascript/

Continue reading »

Crosswalk WebView for Apache Cordova

Shared Mode config.xml :

Multi-APK Mode

Optional: Java Heap Size environment variable :

References https://taco.visualstudio.com/en-us/docs/cordova-crosswalk/

Continue reading »
1 2 3