zaterdag, april 29, 2006


c# recursive controlsearch winform application

In ASP.Net you can find the control your looking 4 with the nice function findcontrol (which I initially found AFTER writing my own recursive search method :-)) Now I expected same kind of functionallity when writing a winapp. Strangly i couldnt find it. Here a quick sample for recursive search. Using it in my app which reads and writes dynamically to a XML file. (dunno what fields to expect so.. )

woensdag, april 26, 2006


cool AJAX demo site nice portal demo, something Microsoft try's with


Lecture AJAX, Donderdag 21 september 2006, Leeuwarden

Meer weten over verschillende aspecten van AJAX technologie? Kom naar de lezing die ik 21 september geef in Leeuwarden.


Dutch session


Atlas resources

Atlas Resource List
If you've been working with Atlas, you'll want to check out this list of Atlas resources that Rick Strahl has put together here. You check out more ATLAS stuff from Scott Guthrie (General Manager of .NET Platform), Nikhil Blogs (Key Architect), Brad Abrams (Group Project Manager), Bertrand (who is a key Atlas dev), Jonathan Hawkins (who is a key PM on the Atlas team), Shanku Niyogi (who runs the ASP.NET and Atlas teams).

Personal addition: Check out Scott Guthrie his blog, he's atlas teamleader. I also joined his session on the devdays in Amsterdam, great speaker :-)


singleton pattern

A singleton pattern is one that states that there would be only one instance of a class throughout the application domain. This article illustrates this pattern with lucid code examples.

more patterns in my post:


Return new ID in SQL2005

SQL Server 2005 introduces the OUTPUT clause that allows us to find out the values (original or new) for columns manipulated by any INSERT, UPDATE or DELETE statement. With OUTPUT's help, the previous example can be rewritten like this:

DECLARE @InsertedRows AS TABLE (Id int)
INSERT INTO HumanResources.Employees
( /* column names */)
OUTPUT Inserted.Id INTO @InsertedRows
VALUES (/* column values */)
SELECT @NewId = Id FROM @InsertedRows

Note the @InsertedRows temporary table declaration and the use of the OUTPUT clause right before the VALUES clause inside the INSERT statement. This code is not only concurrency-safe, but it allows us to get the values of other columns that could have been generated (e.g. by DEFAULTs or TRIGGERs). Moreover, as I already mentioned, it can also be used with UPDATEs and DELETEs which makes it useful for those who like to have record-level logs (even though I prefer to use business level logs, but that's another story...)

Read comments in article 2!

dinsdag, april 25, 2006


Doubler, code generator

Doubler is a code generator that makes unit testing easier. It is especially useful when working with legacy code. It is a Reflector add-in, a tool already woven into your workflow. It will help you cleave dependencies apart, create test doubles, and write unit tests with little effort and less coding.

Didnt test it jet, but features sound ok.

also added to large tools post:


msdn magazine may 2006



strangely cant recall ever seen this part of msdn b4, but has some nice articles and starterkits. Another feed in my sharpreader :-)


NDepend - free beta version

How does NDepend help me have a better understanding and control over my .NET code?

NDepend analyses .NET assemblies of an application and generates reports containing design quality metrics, warnings and diagrams. More on reports in the Sample Reports section.The VisualNDepend tool allows analysing all these data thanks to an interactive view. Such view can be tuned according to numerous software metrics. Here are some screenshots of VisualNDepend. The sample analyzed application is the 15 main assemblies of the .NET Framework 2.0 (2.8M IL instructions)

Beta version is free..


pair programming???%$#

This buzzword seems to get stronger and stronger, also listened to a podcast about this subject. Personally it sounds like hell to me (im 2 easy distracted) but some plp think its great

read article:


ASP.NET 2.0: XmlDataSource - Default Caching Feature

Watch it!

when you bind the XmlDataSource to a control, the data doesnt change.
This is because, by default, the EnableCaching propery is set to "true"


Extra masterclass aproved

Well just a personal note. My master class MSF is approved! (unexpected, was no room anymore in the first place, but they arranged extra sessions)

So in the end of may, I’m in Amsterdam :-)

maandag, april 24, 2006


information schema sqlserver

More a personal reminder post. Once in a while you need to query the database information schema. Here the query's you can use

How to reset the identity field in mssql server:


dinsdag, april 18, 2006


Web Application Settings in ASP.NET 2.0

ASP.NET 2.0 brought about a number of improvements in the way configuration settings are stored and accessed. Several new configuration sections have been added to the web.config schema, settings can be updated via code, and can be more easily encrypted and decrypted than before. In this article, Richard examines these new features with the help of code samples.

by Richard Dudley


getdate().tostring("MM/dd/yyyy") - MyCash.ToString("C")

Stop Using DatePart for Formatting Dates!
If you're still formatting dates as such:
lblDate.text = datepart("d",Now) & "/" & datepartt("m",now) & "/" & datepart("yyyy",now)
then stop this instant! Step away from the keyboard and no one gets hurt.
There are better ways in ASP.NET to format dates. You could replace the above line of code with:
lblDate.text = getdate().tostring("MM/dd/yyyy")
and end up with exactly what you needed. ASP.NET is full of great format strings. Remmeber the old FormatCurrency(MyCash) command? You can replace that with MyCash.ToString("C"). Download the .NET 2.0 SDK and look up "formatting strings"; you'll find all these goodies in there.

by Richard Dudley

maandag, april 17, 2006


create rss feed (c#)

It’s a simple class and there’s not much to it, but I thought that hopefully this will be of use to any other C# developers out there


url-rewrite opensourceproject

Personally I like to do all my rewriting in the global.asax file but here an opensource project if you dont like option 1


Code Snippets - the whole enchilada

If you are using Visual Studio 2005, you sure have encountered a new nifty feature called Code Snippets.
There are a lot of articles and blog posts surrounding this topic, so why another post? Well I'll try to give give you a (hopefully) complete roundup on

-what Code Snippets are
-how you can use them
-how to create your own
-where to find some already done by others
and how to install and manage them

Jeff Atwood - Code Snippets in VS.NET 2005 (
MSDN - Creating and Using IntelliSense Code Snippets (
MSDN - Code Snippets Schema Reference (,vs.80).aspx)
Visual Studio Hacks - Snippy (
Roland Weigelt - Code Snippets (
GotCodeSnippets.NET (
MSDN - Visual Studio 2005 Code Snippets (
Jeff Atwood - C# Snippet Parity (
Jeff Atwood - Download C# snippets and registry file (
Jett Atwood - Snippet Enumeration Macro(

personal adds (yes, with vs2005 version also!!!)

Visual Studio 2005 Unit Testing Code Snippets


In this article, Amal discusses how to create charts inside a DataGrid control using an XML file

In this article, Amal discusses how to create charts inside a DataGrid control using an XML file.


tools tools and more tools

pick ur tool: (also take a look at all the other extentions)

Tyred of the loading time of adobe pdfreader? Supersmall, superfast and free: foxitreader. Heard about it during a podcast but forgot about it until it showed up on the lists above.

GhostDoc is a free add-in for Visual Studio that automatically generates XMLdocumentation comments. Either by using existing documentation inheritedfrom base classes or implemented interfaces, or by deducing comments fromname and type of e.g. methods, properties or parameters.

Tools for unit testing
Tools for code and documentation management and generation
Tools for modifying the development environment
Tools for working with data

Snippy - Visual Studio Code Snippet Editor

snippets addin codekeep (yes, with vs2005 version also!!!)

Here are listed some of the existing companion tools for .NET development. We put the focus on the quality of the content. Boring marketing fluff is filtered out.

ASP.NET Development Helper is a utility for ASP.NET page and control developers that plugs into Internet Explorer. It allows viewing information about the current page such as view state and trace, perform some operations on the server in the context of the running application to aid testing, and also allows monitoring requests and responses for diagnostic scenarios.

WSCF - Schema-Based Contract-First Web Services
A Free Visual Studio Add-In and Command Line Tool for ImprovedSchema-Based Contract-First Web Services Design and Programming
thinktecture WSCF

TestDriven.NET makes it easy to run unit tests with a single click, anywhere in your Visual Studio solutions. It supports all versions of Microsoft Visual Studio .NET
TestDriven.NET 2.0

Tools and source code for .NET, C#, Visual Basic and WinFX. Reflector is a popular class browser. Resourcer is a .NET resource editor.
Lutz Roeder's .NET Reflector

Doubler is a code generator that makes unit testing easier. It is especially useful when working with legacy code. It is a Reflector add-in, a tool already woven into your workflow. It will help you cleave dependencies apart, create test doubles, and write unit tests with little effort and less coding.

VS2005 tool to help simplifies the process of installing and uninstalling controls from VS2005

Internet Explorer Developer Toolbar Beta 2 Preview Update

Keep track of what u where doing. (Takes screenshots)

Fiddler is a HTTP Debugging Proxy which logs all HTTP traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP Traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler is designed to be much simpler than using NetMon or Achilles, and includes a simple but powerful JScript.NET event-based scripting subsystem.

Small tool which allows you to edit a resource file outside Visual Studio. Well, writing ur own would take about 40 min, but whatever, its free..Only drawback, when you give this tool to your client, he/she has to have the 2.0 framework installed.


using sp's or not??

Every once in a while you get the discussion wheter or not to use stored procedures. Working with a fully dynamic (own written) ORM Its not an issue to me unless I really need that last vew percentage of performance (note! in SQL2005 this is only a vew %, in SQL2000 it can be over 10%)

Here an article:

Ref in this article (allready posted b4, but cant be repeated enough :-) ):


c# codesnippets

maybe repost, but nice resource..


Atlas autocomplete sample

step by step walkthrough


C# refs version check

not sure what version is available?


regex books

Regex rule, confirmed by Bill. You don't use them 2day? use them 2morrow.

zaterdag, april 15, 2006


Atlas toolkit

vrijdag, april 14, 2006


design patterns list (edit)

Design patterns are recurring solutions to software design problems you find again and again in real-world application development. Patterns are about design and interaction of objects, as well as providing a communication platform concerning elegant, reusable solutions to commonly encountered programming challenges.

Template Method
Factory Method
Abstract Factory


A singleton pattern is one that states that there would be only one instance of a class throughout the application domain. This article illustrates this pattern with lucid code examples.


C# vs Java

Switching between languages?? here nice reference document


XHTML Validation Module Checker for ASP.NET 2.0

They've recently published a very cool XHTML Validation module for ASP.NET 2.0 that allows you to easily identify and catch any non-XHTML markup with your application. You register it as an ASP.NET HttpModule within your app's web.config file, and then it watches and checks all page output for XHTML compliance:



OO design basics

need to refresh ur oo desing guidelines, here an article to read

Well thats all, I call it a day 4 now..


weekend project, ATLAS chat

And another post by Rick,

sample atlas chat


4 reason why u should not forget to set the debug mode to false in ur production environment

1) The compilation of ASP.NET pages takes longer (since some batch optimizations are disabled)
2) Code can execute slower (since some additional debug paths are enabled)
3) Much more memory is used within the application at runtime
4) Scripts and images downloaded from the WebResources.axd handler are not cached

read all:


creditcard processing and paypall kitt

Another great posts Scott Guthrie pointed to,

Integrating Electronic Payment Processing intoASP.NET Web Applications

PayPal-enabled eCommerce Starter Kit


Attach to Visual Studio's Development Web Server easily using a macro

Something I have to do frequently is attaching to a running web application for debugging purposes. I don't always start my web applications in debug mode, but I often need to attach at some point when doing some testing.Unfortunately, there is no easy way to do this from Visual Studio. We have to attach to the server process "by hand". After some time doing this, you'll find it a bit boring...Here is a quick-n-dirty solution. It's a simple macro that attaches to the first web server process it finds. Just copy the code below to your macros using the Macro IDE (Tools Macros Macro IDE...).

Attach to Visual Studio's Development Web Server easily using a macro


All about masterpages

Nice complete article about masterpages


repost? PowerToys for the Visual Studio 2005 Class Designer and Distributed System Designers: Workspace Home

During the VS2005 Beta period i found this classdesigner extention but after release i totally forgot about it, here you can download the RTM version


remarkable: Source Code for the Built-in ASP.NET 2.0 Providers Now Available for Download

Today we released the source code for the built-in ASP.NET 2.0 Membership, Role Management, Site Navigation, Session State, Profile, Web Events, and Web Part Personalization providers (basically all of the built-in providers that ship in the .NET 2.0 Framework Redist). You can download them here, and learn more about the ASP.NET 2.0 Provider Model from this site here.

By Scott Guthrie

Also released:

donderdag, april 13, 2006


Provider Toolkit

The provider model is used throughout ASP.NET 2.0. It is a means of writing each of the technologies used so that new versions can easily be created and plugged in. For example, if you need to access a different database or authentication server, you can create a provider for it. ASP.NET 2.0 will then work with that provider just as it works with the existing features. This makes ASP.NET 2.0 much more flexible, expandable, and customizable than before.

zondag, april 09, 2006


free elearnings from MS about vs2005


BI Quickstart

11 webcasts focused on the tools available for business intelligence

session 1 available for download

zaterdag, april 08, 2006


Using Atlas with PHP

The Atlas framework has two distinct elements - a client script framework, and a set of server extensions that integrate Atlas with ASP.NET. The client script framework is 100% Javascript, and works with any modern browser. But it is also completely server-agnostic, and works with any web server.



Architecture journal 7

Download the free magazine from MS:

older journals:

You can also get them on paper/mail but somehow I never receive it (only US?)

maandag, april 03, 2006


oldskool scripting

once in a while you get surprises by weird client questions.. today they asked to write some scripts which are going 2b scheduled on a server. Normally working in C# and VS2005 this was a kinda shock :-), here some references

zondag, april 02, 2006


vs2005 add-in time


2 times Rocky Lhotka