Custom ASP.NET DataSource parameters

With ASP.NETs DataSource controls you can parameterize your query and have those parameters automatically fetched from one of a few standard sources. Those include getting a parameter value from the querystring, a form parameter, a control or from a users session variables, profile or cookies.

These parameter types enables us to build a lot of functionality [...]

More presentations coming up…

ASP.NET

Did you miss the free one-day ASP.NET courses I gave in june or september? You’ve got another chance now! It’s scheduled again for thursday, december 3. Read more about it AND sign up for the ASP.NET course here!

Windows Azure

Also, since Windows Azure is being released  in just a couple of weeks, I’ll take a look at what that means for [...]

Diving deeper into Windows Azure table storage

In this previous posts about Windows Azure Table Storage, I relied on the StorageClient project in the Azure SDK samples. This feels a bit strange, and raises the question: Am I expected to include references to sample projects and be using Microsoft.Samples.whatever namespaces in my future projects?

This raises a couple of questions about license, copyright, [...]

Files from the one-day ASP.NET course

You can download all the files used and created during my one-day ASP.NET course here. The zip file contains the slides (PDF), the databases  and all the files used and created during the presentation.

I added a default.aspx page listing the samples, so hopefully it should be easy to find the demo you’re looking for.

Visual Studio 2008 [...]

Free one-day course in ASP.NET

Today I’m presenting the free one-day course in ASP.NET at Microsofts Norway offices at Lysaker again.

I’ve prepared a zip archive containing both the presentation slides (as PDF) and a few artifacts I’ll use during the presentation. (Code files, sample XML documents, sql scripts etc.) Click here to download them! (Come back for the demos later. [...]

Authenticating against Azure Table Storage

When searching for articles/blogs/samples about using Azure Table Storage from .NET, it seems most of them (if not all) depend on the StorageClient sample in the Azure SDK. I read about authentication with SharedKey or SharedKeyLite, and I always found the magic of these authentication schemes were wrapped up into several layers of abstractions in [...]

Free one-day course in ASP.NET

The free one-day ASP.NET course I gave in june was a great hit, so Microsoft and Programutvikling AS decided to do it again!

When? Tuesday September 1. in Microsofts Norway offices at Lysaker.

Read more about the course AND sign up for it here!

(The course is presented in Norwegian.)

How to use Windows Azure table storage

I found several great articles showing how to work with Windows Azure Table Storage:

Rob Bagby’s Azure Application Part 2: Access Azure Table Storage
Jim Nakashima’s Windows AzureWalkthrough: Table Storage
Video tutorials on Microsofts Azure developer portal

All these, however, assume that the table storage will be used from an Azure web or worker role. I wanted to see if the Windows [...]

Traverse a hierarchical structure with LINQ-to-Hierarchical

RecentIy I needed to find a specific TreeNode in a TreeView control. I expected that would be easy with LINQ, but quickly realized that there is no method in the .NET framework that will let me traverse all nodes of a hierarchy. I decided to create one myself.

Mythbusters: Unit-testing

While I believe most or many developers have heard of JUnit/NUnit/<your testing framework here>, fewer know how to write a test and running it using such a framework. And from those, even fewer have a good understanding of how to make unit testing a part of the development workflow.

I’ve known about unit testing and unit [...]

The trouble with delimited

In this previous article articles about parsing files, I took a very simplistic approach to reading a delimited file. I used string.Split, which doesn’t handle the use of quotes and usage of the delimiter character inside quotes.

Well, it turns out theres more to reading a delimited file than splitting at the delimiter…

Files from the one-day ASP.NET course

You can download all the files used and created during my one-day ASP.NET course here. The zip file contains the slides (PDF), the databases  and all the files created during the presentation.

Free one-day course in ASP.NET

Today I’m presenting a free one-day course in ASP.NET at Microsofts Norway offices at Lysaker. You can download the presentation here.

If you don’t already have Visual Studio, you can download the free Microsoft Web Platform installer here.

The course is presented by Programutvikling AS and Microsoft Noway.

Shortcuts for unittesting

When you’re doing unittesting in a project, there are two more shortcuts that would be nice to have.

These days, I’m running tests more often than I’m running the app, so why stop at having only the F5 so available for running the app in the debugger?

Free one-day course in ASP.NET

Microsoft Norway offers a free one-day course in ASP.NET.

What’s cool about Code Snippets?

Code snippets are pre-created pieces of code, and Visual Studio supports two kinds of them. Expanding code snippets and surrounding code snippets. You can get started with code snippets right away, since Visual Studio ships with lots of them.

So, how do they work? Well, the expanding code snippets are the easiest to use; you select a snippet [...]

More parsing textfiles with LINQ

In a previous article, I described how to use LINQ when parsing a textfile.

Following that train of thoughts further, I found a more elegant way of splitting the lines from the file into columns. Creating extension methods on top of IEnumerable<string> seems like a good idea! Something that could be used like this for a [...]

Your second handfull of VS2008 Shortcuts

In my previous article about keyboards shortcuts I promised a follow-up.

Well, here it is:

Many of the keyboard shortcuts in Visual Studio are chords. This means that the shortcut is actually a sequence of keypresses.

Parsing textfiles with LINQ (or LINQ-to-TextReader)

Reading and parsing files is really no difficult task with the .NET framework. The System.IO namespace has several good classes to aid that task.

Your first handfull of VS2008 keyboard shortcuts

When teaching programming, I tend to do a lot of live coding. Coding in front of a live audience is special, and I take special care to try to do it right the first time, and also do it as quickly as possible at the same time.