Contact   •   Articles   •   Products   •   Search

Rick Strahl's Web Log

Wind, waves, code and everything in between...
ASP.NET • C# • HTML5 • JavaScript • AngularJs

Weblog Posts in March 2012


ASP.NET Web API and Simple Value Parameters from POSTed data



There are a few odd behaviors with Web API and its handling of simple parameters to Controller methods. While complex values serialize just fine, simple values like strings and dates and form variables require special attention.

Dynamic JSON Parsing in .NET with JsonValue



The JsonValue/JsonObject/JsonArray classes in the System.Json are new for the full .NET framework and recently introduced with the various betas of ASP.NET (and previously WCF) Web API. JsonValue fills the need for dynamically parsing and serializing of JSON at runtime.

.NET 4.5 is an in-place replacement for .NET 4.0



With the betas for .NET 4.5 and Visual Studio 11 and Windows 8 shipping many people will be installing .NET 4.5 and hacking away on it. There are a number of great enhancements that are fairly transparent, bBut it's important to understand what .NET 4.5 actually is in terms of the CLR running on your machine. When .NET 4.5 is installed it effectively replaces .NET 4.0 on the machine. .NET 4.0...

Removing the XML Formatter from ASP.NET Web API Applications



When viewing ASP.NET Web API output in browsers the content is usually displayed as XML which is not my preferred choice. Even though JSON is Web APIs default format XML continues to be displayed. Here's some discussion on why this happens and how you can work around it.

Using an alternate JSON Serializer in ASP.NET Web API



The default serializer in ASP.NET Web API (at least in Beta) is the DataContractJsonSerializer with all of its warts and inability to not serializer non-typed objects. In this post I'll talk about the issues and how to plug-in alternate JSON parsers to handle more complete JSON serialization in Web API.

Removing the XML Formatter from ASP.NET Web API Applications



When viewing ASP.NET Web API output in browsers the content is usually displayed as XML which is not my preferred choice. Even though JSON is Web APIs default format XML continues to be displayed. Here's some discussion on why this happens and how you can work around it.

Using the HTML5 <input type="file" multiple="multiple"> Tag in ASP.NET



HTML5 allows for multiple files to be uploaded from a single file input control. Here's how you can use it and capture files in ASP.NET.

SnagIt Live Writer Plug-in updated



I've updated my SnagIt plug-in for Windows Live Writer to work with SnagIt 11. Also updated the user interface slightly and moved the source code to GitHub.


West Wind  © Rick Strahl, West Wind Technologies, 2005 - 2015