Archive for April, 2010


Using Contract By Design over the wire and a possible solution

I’ve been plagued with an issue that I have yet to find a solution for.

This is really more for my benefit so I can research this later, but basically when I create classes I tend to decouple them by using interfaces, especially between layers.

The problem is when you use a service layer, such as WCF, that the class that is generated on the client side doesn’t carry the implementations that the server side class has.

Then I found this article which might be my saving grace.  It lefts you actually reference the same class on the client side.  This might be solution I’m looking for.

Once I get a chance to test this out I’ll post the results with some code.

 
Creating an PagedList<T> that uses AJAX

I’ve been using this PagedList functionality that i found from a blog article Rob Conery put up, and a control I found by Robert Muehsig which I’ve really enjoyed using so far.

One of the things that was missing from the functional set that I ended up needing was the ability to page the list, but through issuing AJAX requests instead of the typical post back.

So I went off and extended the existing model to support AJAX requests, and thought I would share it in case anyone else needed to do the same thing.