Friday, September 14, 2007
Yes, you're reading correctly, I've bought a brand new macBook pro today. It's quite a new experience for me as I grew up with MS-DOS and Windows. But so far, I like it. I'll probably dual boot it with Windows Vista but I'm also interested in learning Mac OS X. Something I already found out is that it's a very silent notebook and that it doesn't warm up that much like my Dell Latitude D505 does. On the other hand it's still strange to only have 1 mouse button available and so far I haven't found the "End" key to jump to the last place on a line while typing.

In case you're wondering, it's the 15.4" edition, 2,4GHz edition. Up until now, I like what I see. 1 thing I like in particular is the background light on the keyboard.

Grz, Kris.

Friday, September 14, 2007 10:38:11 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [2]  |  Trackback

Always nice to see a working example when learning something new. I just noticed that the list of starter kits has grown. Be sure to check them out. It seems that there are already 3 versions of the Club Starter Kit, 1 created by Microsoft people and 2 extended versions by the community. Also take a look at the, just started, starterkits.org site.

Grz, Kris.

Technorati tags: , ,
Friday, September 14, 2007 8:26:30 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [1]  |  Trackback
 Sunday, September 09, 2007

Standard out of the box ASP.NET 2.0 uses SQL Server Express for the Application Services (Membership, Roles, ...). However sometimes you don't want it to be like that because you don't want to pay extra for SQL Server to your hosting company. In the past you practically had to rewrite your application or at least the Data Access Layer to be able to use an alternative database. Thanks to the Provider model that's being used by ASP.NET 2.0 it's possible to develop an application while another team could create an alternative provider and afterwards use some configuration to let your application make use of this new provider.

So, when you're reading this, it means you're interested in changing your default SQL Server based applications services to Access. First of all make sure that you download the Sample Access Providers provided by Microsoft.
This is a .vsi file and you could run it to get installed. But rather then doing that, you simply rename the extension from vsi to zip. That's right, you simply rename it and use a zip utitlity, like the built in zip functionality of Windows to extract the files.

accessproviders01 
Figure 1: the unpacked Sample Access Providers

These are the files I got after extracting the .zip file. You see there's already a full blown ASPNetDB.mdb file in it that has the needed tables and queries to be able to support  the Application Services. Figure 2 shows what's already available. As you can see

accessproviders03
Figure 2: Overview of the available tables and queries in the accompanied Access database file.

After extracting the files we still need to compile the source code in order to be able to integrate the providers into our web application. If you have Visual Studio or Visual C# Express installed you open your IDE of choice. You navigate to the menu and click File, Open, Project/Solution. Once the dialog opens you navigate to where you extracted the contents of the zip file. Select the Access.csproj, see Figure 1, and click the Open button.

Once opened you can see the following in the solution (Figure 3). Now you just have to build the solution, preferably in Release mode.

accessproviders04
Figure 3: solution

Ok, the output of building the solution provides us with an assembly named SampleAccessProviders.dll. To find it back you just need to open a windows explorer and navigate to the place where you extracted the zip file to. There you should see a newly created subfolder called bin and in that one that's called Release. In the Release folder you'll find the built assembly.

Now that we have created the assembly it's time to actually use it. Open your Visual Studio or Visual Web Developer Express and create a new website. In the project you create a new subfolder called bin. After creation right click on it and choose Add existing item... from the context menu that appears. Navigate to the place where the built assembly is. Add it to the bin folder of the website project. After that repeat the same thing with the access database (ASPNetDB.mdb) file but this time put it in the dedicated folder App_Data which is one of the predefined ASP.NET 2.0 subfolders.

Open the web.config file of the website project. You'll need to make some adjustments here in order to be able to use it Access provider. When you take a look at figure 1 you'll see that the extracted zip file also contains a web.config. It already contains the needed parts so the only thing required is just to copy paste the needed configuration parts.
First of all the connectionstring to the access database:

    <connectionStrings>
        <add name="AccessFileName" connectionString="~/App_Data/ASPNetDB.mdb" providerName="System.Data.OleDb"/>
    </connectionStrings>

 Also be sure to change the authentication mode which defaults to Windows. Make it use Forms instead like this:

<authentication mode="Forms">
  <forms loginUrl="mylogin.aspx" defaultUrl="Login.aspx"/>
</authentication>

After that you can simply copy in the providers that you need. In this tutorial I'll only copy in the Membership provider part:

<membership defaultProvider="AccessMembershipProvider">
    <providers>
        <clear/>
        <add name="AccessMembershipProvider" 
                type="Samples.AccessProviders.AccessMembershipProvider, SampleAccessProviders" 
            connectionStringName="AccessFileName" 
            enablePasswordRetrieval="false" 
            enablePasswordReset="false" 
            requiresUniqueEmail="false" 
            requiresQuestionAndAnswer="false" 
            minRequiredPasswordLength="1" 
            minRequiredNonalphanumericCharacters="0" 
            applicationName="SampleSite" 
            hashAlgorithmType="SHA1" 
            passwordFormat="Hashed"/>
    </providers>
</membership>

Other provider parts, like the Roles and Profile, are just as easily copied.

Just to see if things are working is quite easy. Just open the ASP.NET Configuration Tool. You do that by navigating to the menu and click Website, ASP.NET Configuration. A browser opens with the tool in place. Click the fourth tab (Provider). Select the second link ("Select a different provider for each feature (advanced)). There you'll see that the access provider is selected (figure 4)

accessproviders05
Figure 4: Provider tab in the ASP.NET Configuration Tool

In the membership configuration you notice the <clear/> tag. This clears all previous settings from a hierarchical higher configuration. If you remove that particlar line you'll see that you get another radiobutton option that lists the default AspNetSqlMembershipProvider. If you would select that option SQL Server's used again. 

Grz, Kris.

Sunday, September 09, 2007 8:25:12 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [1]  |  Trackback
 Friday, August 31, 2007

C#3.0 and LINQ offer new and compelling features to developers. You can get to know both better by taking a look at these hands on labs provided by Microsoft:

  • LINQ and language samples for Visual Studio 2008 Beta 2
  • LINQ Hands On Labs
  • C# 3.0 Language Enhancements Hands On Lab
  • Grz, Kris.

    Friday, August 31, 2007 5:01:16 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback

    VISUG offers a presentation, given by my buddy Gill Cleeren, on Silverlight. I'll be attending it and I hope to see several of my other friends there as well. If you're in the neighbourhood and have interest in this new technology be sure to be there. You can still register but hurry up as places are being filled up rapidly.

    The place to be is at Ordina in Schelle. To see who already registered take a look at the VISUG site.

    This is what'll be covered:

    • Introduction to XAML
    • Silverlight 1.0 with Javascript
    • Silverlight 1.1 with .net
    • Blend 2 and Silverlight
    • Features of the final platform to come

    Grz, Kris.

    Friday, August 31, 2007 3:30:29 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
     Tuesday, August 28, 2007

    You just got to love this, when you download a starter kit, and run the .vsi file it doesn't only get into the available templates of Visual Studio 2005 but also in the templates of Visual Studio 2008 Beta 2, which I have installed side by side at the moment. When creating a new website, based on such a starter kit, I got to see this dialog:

    upgrade_visualstudio2008_vs

    I was thinking that I needed to copy paste the zip file, which gets created when you use the .vsi file to install, but it just installed on both locations. Great!

    Do you have an ASP.NET starter kit that you think that might be interesting for other people? If so please post it on the Announcements forum or you can upload it on this new dedicated site: http://starterkits.org/ which was created by my co-moderator/MVP Curt.

    Grz, Kris.

    Tuesday, August 28, 2007 8:52:48 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
     Wednesday, August 22, 2007

    Like Silverlight? Like search? Like them combined? If so be sure to check out the new Tafiti search engine. I especially liked the treeview option where you can see, in a rotating tree, what's been found. Probably it won't replace, for me anyway, google or live search but it shows the possibilities that you can obtain when using Silverlight.
    Speaking of which, if you're in Belgium on September 20th you can join the VISUG meeting about Silverlight. I'll be there too.

    Grz, Kris.

    Technorati tags: , , , ,
    Wednesday, August 22, 2007 9:11:25 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
     Tuesday, August 21, 2007

    Always fun to know what those names stand/stood for and what they became when the product got actually released. Take a look here: Microsoft codenames.

    Grz, Kris.

    Tuesday, August 21, 2007 9:57:13 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
     Thursday, August 09, 2007

    I just read the sad news about the death of a great .NET community person: David Boschmans. I knew David as being a great and nice guy that took the time to listen to the community. I heard at the VIP community weekend that he had health problems but that he was recovering. Rest in peace good man, you'll be missed.

    Grz, Kris.

    Thursday, August 09, 2007 2:06:54 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
     Friday, July 27, 2007

    Hi,

    if you're into Microsoft technology you'll probably know about Channel 9 and On10. While I was surfing/investigating the revamped ASP.NET site I noticed a new entry in the community toolbar: Channel 8.

    Channel 8 is THE place to be for STUDENTS who want to code, connect and create technology. Stay plugged into tech news and share in the experience with students around the world just like you who want to see their creations come to life. This is also a back door directly into Microsoft just like Channel 9 but from a student point of view. This means access to the inside scoop about our products and life working inside Microsoft and information on cool things coming out. This is your community – a place for you to share your tips and tricks and even your problems. Go check out what others are doing and talk about what you think is cool.

    I hope a lot of interesting content will come up there just like on Channel 9. More to watch for all of us.

    Grz, Kris.

     |  | 
    Friday, July 27, 2007 1:48:38 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback

    A site that I visit frequently just got a repaint job. It looks nice I must say. Be sure to check it out at http://www.asp.net/. If you should have any suggestions or remarks you can leave them in the Feedback forum.

    Grz, Kris.

     |  | 
    Friday, July 27, 2007 8:22:49 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback