July 21, 2005
.NET
ObjectDataSource, Object Nirvana
I've just started an ASP.NET 2.0 project and I have to say I'm very impressed with the ObjectDataSource control so far. I point this nifty little control at one of my service objects (plain objects, not web services as yet), specify the methods for insert, select, update, delete, tell it the type of business object to expect (optional I think), hook a GridView control up to it, and voila, everything is working. No code! You don't even have to specify the parameters for the CUD methods -- it will figure them out itself. I just have the business object as my sole parameter, but apparently it can also do properties as parameters if you prefer that instead.
Posted by Adam Boddington at 01:04 PM | Comments (1)
June 27, 2005
.NET | SevenCamels.Common.Cojay
Reinventing the Wheel
Well that was fun. I learnt something about Ajax, specifically Ajax.NET, and I got a nice code browser to boot. Inspired by Scott Watermasysk's Cojax, Cojay isn't as pretty, but it will do for now. Cojay is just for demonstration purposes at the moment since I haven't bought a license for the ComponentArt.Web.UI.TreeView control just yet.
Posted by Adam Boddington at 08:26 PM | Comments (0)
June 25, 2005
.NET
Cojax
Scott Watermasysk has written a very nice code browser he's called Cojax. Very fast, easy to use, and most impressively, he only spent a couple hours on it. Let's hope he makes the source code available, but in the meantime, I'm tempted to have a crack at building something similar myself. What's on TV right now? :-)
Posted by Adam Boddington at 12:28 PM | Comments (0)
June 22, 2005
.NET | SevenCamels.Framework.Configuration
Version 1.1
I've written a quick update to the SevenCamels.Framework.Configuration library. The first change is to allow regular plugins to be instantiated as needed. The second change is to require all plugins to take their key as their first constructor parameter. The last change is the conversion of all collection classes to typed collections. More details on the three changes can be found below. You can download the latest version of the SevenCamels.Framework.Configuration library, with an updated Example program, here.
Posted by Adam Boddington at 02:47 PM | Comments (0)
June 07, 2005
.NET | SevenCamels.Framework.Configuration
Class Overview
As promised, here is a rundown on the classes in the revamped SevenCamels.Framework.Configuration library. You can download the library here. Please note the license files in the download.
Posted by Adam Boddington at 02:43 PM | Comments (0)
June 06, 2005
.NET | Design Patterns | SevenCamels.Framework.Configuration
Plugin the Provider Pattern
I finally took a look at the Provider Pattern outlined by Rob Howard in MSDN's "Nothin' But ASP.NET" column. There's a Part II as well which comes with a nifty little code example. It's very similar to some work that I've already done with plugins defined in configuration files, so I thought I would abstract my work out a bit more and see if I could get it to support the Provider Pattern as well. Extending it to cater for providers was pretty simple with a little refactoring, but before I start talking about the code, lets take a look at what the Provider Pattern actually is.
Posted by Adam Boddington at 01:20 PM | Comments (0)
June 01, 2005
.NET
app.config
You learn something new every day. I've always put the config files for my console and windows applications in the "bin/Debug" directory. It's ugly, but it's always worked for me -- up until today. For some reason, with a brand new project, my config file disappeared every time I did a build. I didn't solve that problem, but I did find out that if you put the config file in the project folder instead and call it "app.config", VS.NET is nice enough to copy it to the "bin/Debug" folder for you and rename it correctly when you build. I suspect the "bug" is related to the "feature" but I'm happy now that everything works again -- and better than before.
Posted by Adam Boddington at 09:17 AM | Comments (0)

