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 without leaving ASP.NET markup. Still, they don’t cover every imaginable scenario. So when someone asked how to get the username as a parameter in this question on Stackoverflow, it inspired me to write this article. Continue reading “Custom ASP.NET DataSource parameters”

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 or Visual Web Developer 2008 Express Edition.
  • SQL Server 2005/2008 Express Edition or better. (Installs with the above by default.)

(The free Microsoft Web Platform Installer will install the minimum requirements.)

Instructions to run the demos:

  1. Unzip the contents.
  2. In the Install folder, you’ll find the SetUpDb.cmd. Double-click it to install the Northwind and Pubs sample databases into your SQL Server.
  3. In the Demos folder, you’ll find the solution file (Demos.sln). Double-click to open it in Visual Studio / Visual Web Developer.
  4. Press F5 to run.

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. I will upload whatever code I create during the presentation.)

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.