Developers

You can follow this category through RSS.

How to automatically insert SVN Version number on a webpage(assembly)?

Friday, January 28th, 2011

Hi, I will try shortly and easily to describe, how to add automatically the SVN version number information into a ASP.NET Web Page. Of course first thought was just to generate a text file(using (...)

Visual Studio – image optimization

Friday, January 14th, 2011

Images are currently one of the key elements of any web page.  Unfortunately, very often - apart from making our website more beautiful - images increase the page loading time.  This is obviously beca (...)

WCF RESTfull WebService and DataContractSerializer DataMember Order – problem deserializing properties

Thursday, November 25th, 2010

While working with WCF RESTfull Webservice, I found a strange behavior, when using SSL/HTTPS connection. The Response from external service wasn't deserialized properly. But why? First, I switched (...)

Setting SkinID for dynamically loaded control

Friday, September 10th, 2010

Recently I ran into an interesting issue. In an asp.net application, which heavily uses skins, I wanted to load user control into a placeholder. What was interesting in that, I wanted to set skin to t (...)

Mocking Linq to Sql DataContext

Friday, September 3rd, 2010

In one of our projects, we are using Linq to Sql  to work with database. It is really nice to use, because it allows you to query a database using Linq. Everything is fine, until you want to unit t (...)

ASP.NET session mockup

Tuesday, July 13th, 2010

Creating a fake ASP.NET session for testing WEB application is painfully simple. There are four steps : Implement the IHttpSessionState according to the example described here : http://msdn.micros (...)

Parsing CSV file using FileHelpers library

Monday, July 5th, 2010

The golden rule is to not reinvent the wheel. But think, how many times you rolled own CSV parser? Me too, unfortunately. So, when I had to implement import functionality from CSV file recently, I dec (...)

Mocking ref and out method parameters in Moq

Monday, June 28th, 2010

Recently I had a situation, when I was writing an unit test and I need to mock a method with an 'out' parameter. I had an import functionality where the import service was using a parser for processin (...)