Plunging into .NET Development

Weblog Pieter Gheysens
Microsoft .NET Development - C# - Enterprise Library - Visual Studio 2005 Team System - Compuware DevPartner - ...

Wednesday, September 27

Next Events

.NET Framework 3.0 - MSDN Event

Monday I've been to the MSDN Event (.NET Framework 3.0) at Kinepolis (Brussels). The event was already fully booked (750 attendees) a few weeks before! Very interesting to see that so many people in Belgium are already interested in the .NET Framework 3.0. My guess is that still a lot of developers are currently using the .NET Framework 1.1 (not even 2.0), but they are already attracted to many of the new features in the .NET Framework 3.0 : WPF, InfoCard, WCF and WF.

Is this typical behavior for the IT industry? Looking at the future and learning what to expect and how to prepare for it, while still - happily or not - facing the daily issues of the current (old?) technology? Wouldn't it be great to have a last/final version of the framework (all-in!) ;-)? Yeah right! Dream on! It's our destiny as techies to adapt ourselves again and again. We may have a high-demanding job, but it will never be boring. That's for sure!

By the way : Peter Himschoot and Ingo Rammer did a great job in presenting the new features of the .NET Framework 3.0. Like always, no remarks on the organization of the events : enough food and drinks, even with a packed Kinepolis. Looking forward to the next one!

Tuesday, September 5

ASP.NET Membership and Roles

In previous posts (Forms Authentication in ASP.NET 2.0 - Personalization and Web Parts in ASP.NET 2.0) I talked already about the ASP.NET Membership functionality, but recently I had an issue with adding a role automatically to a newly created user with the CreateUserWizard control. At that time I had a workaround for this problem, but it didn't feel really good/natural to implement it that way. So, here's the one and only solution :

    protected void CreateUserWizard1_CreatedUser(object sender, EventArgs e)


        //Add each created user automatically to the Users role

        Roles.AddUserToRole(CreateUserWizard1.UserName, "Users");


The CreateUserWizard control has an event CreatedUser that fires immediately after the new user has been created. In that event you can call the AddUserToRole method on the Web.Security.Roles object.