Weblog Posts in March 2012


ASP.NET Web API and Simple Value Parameters from POSTed data
March 21, 2012 @ 5:05pm

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.

11 comments
Dynamic JSON Parsing in .NET with JsonValue
March 19, 2012 @ 3:09am

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.

12 comments
.NET 4.5 is an in-place replacement for .NET 4.0
March 13, 2012 @ 11:43am

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...

29 comments
Removing the XML Formatter from ASP.NET Web API Applications
March 09, 2012 @ 4:51am

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
March 09, 2012 @ 3:30am

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.

23 comments
Removing the XML Formatter from ASP.NET Web API Applications
March 09, 2012 @ 1:51am

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.

11 comments
Using the HTML5 <input type="file" multiple="multiple"> Tag in ASP.NET
March 06, 2012 @ 1:54am

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.

7 comments
SnagIt Live Writer Plug-in updated
March 03, 2012 @ 5:07pm

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 - 2014