Uploading multiple files with C#
Have you ever been in a situation where you needed to upload multiple files to a remote host and pass additional parameters in the request? Unfortunately there’s nothing in the BCL that allows us to...
View ArticleWhat features would you like to see in ASP.NET MVC 4?
If there was a single feature I would like to see in ASP.NET MVC 4 that would be to remove/deprecate ViewBag/ViewData. Those two constructs lead to very ugly code in the views and should be avoided....
View ArticleHow to convert XHTML to PDF in C#
In this blog post I will illustrate how you could convert an XHTML page into PDF using the flying-saucer library. This is a Java library so we need to first step would be to convert it to a .NET...
View ArticleSample ASP.Net MVC project (updated)
I’ve updated the sample MVC project I wrote for using ASP.NET MVC 3 and the Razor view engine. A minor change is that I no longer use the FluentValidationModelValidatorProvider but the standard one. So...
View ArticleVisual Studio versions for your Windows Phone Apps?
Windows Phone 7.x, 8.0 and 8.1 3 major versions of Windows Phone exist since April: 7.x, 8 and 8.1. The 8.1 version allows among others to create ‘classic’ Windows Phone 8.1 applications called 8.1 –...
View ArticleSlow HTTP requests in .NET
When profiling a web application I have noticed constant delays of about 200ms on some HTTP calls it was making to an external API. Both the web application and the API were on the same network segment...
View ArticleSharing of source code in Windows and Windows Phone projects
The Portable Class Library (PCL) The portable Class library (PCL) will allow us to share a large part of the code across projects. It is possible for a few years to share the PCL code between projects...
View ArticleHTTP and images in Windows Phone
I continue to explore different techniques of displaying images in Windows Phone and this time I will show some possible implementations of fetching them from the web using the HTTP protocol. Classic...
View Article