# Sunday, August 06, 2006

Because developing with the .NET framework gives you the freedom to use multiple languages it can be a bit of a hassle to choose between them. VB.NET and C# are probably the most wide spread languages and a question that gets asked regularly on the ASP.NET forums is which one to choose. My answer: learn one of them and when you're familiar with one learn the other. My former company used VB.NET as their default language. In my free time I learned C# though so I became familiar with both. The hardest part isn't actually learning another "dialect" language but learning which classes and namespaces there are available to you is.

Well in aid of those who like to know both languages I found a couple of comparison cheat sheets:

And of course some conversion tools:

Grz, Kris.

kick it on DotNetKicks.com

Sunday, August 06, 2006 2:55:20 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Tuesday, August 01, 2006

Sometimes you can still get amazed by new programs although we're used of seeing a lot of wow applications already. Microsoft research lab recently introduced a new product of theirs: Photosynth. In this case seeing is believing so here goes:

Grz, Kris.

Tuesday, August 01, 2006 8:53:23 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, July 31, 2006
# Friday, July 28, 2006

Learning new technologies is always some part fun, some excitement but also can cause some frustration when something doesn't work like you would expect it. For the first part there are a huge amount of books available but Microsoft is also being busy creating videos for their ASP.NET technology and since recently also for the upcoming Atlas technology. You can find the videos here.

Of course, when things get frustrating and need help you can always visit the ASP.NET forums.

Grz, Kris.

Friday, July 28, 2006 6:30:02 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Tuesday, July 25, 2006

Just found this on Tom Archer's blog. At the moment it can be quite confusing to keep up with all the CTP's, releases and which month's version should I use? Well, this blog entry tries to make it clearer: Determining Which Build of Windows Vista and .NET 3.0 Development Tools is Right for You.

Grz, Kris.

Tuesday, July 25, 2006 6:05:58 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, July 24, 2006

Just to good to let it go: Boten Anna. Check out the subtitles of the song...

Grz, Kris.

Monday, July 24, 2006 5:59:58 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, July 21, 2006

Most people that have even limited experience with ASP.NET know that you can set the properties of a server control quite easily in the Properties pane of vs.net. Once done this gets set declaratively in the attributes collection of the control. You can see this quite easily when you take a look at the markup of your webform. 

A little less known however is the fact that this also can be done with user controls. You can create a public property on the user control, place it on a webform and set, declaratively, the property in the markup of your webform.
I did it myself a couple of years ago when I crafted a user control that on a certain webform would show the entire list coming from a database and on another webform it should only let a subset of that list be seen. So using this technique I was able to set which list would be shown, from the webform. Keeping the webform in control of what's shown once it was rendered.

A small example is in place here:

First I have my user control:

    1 <%@ Control Language="C#" ClassName="PropertySetDeclaratively" %>

    2 

    3 <script runat="server">

    4 

    5     public string ShowValue

    6     {

    7         set { Label1.Text = value; }

    8     }

    9 

   10 </script>

   11 

   12 <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>

As you can see, I created a public property ShowValue in which the Text of the Label control, Label1, will be set to the value that's passed to it.

And the webform which hosts the user control:

    1 <%@ Page Language="C#" %>

    2 

    3 <%@ Register Src="PropertySetDeclaratively.ascx" TagName="PropertySetDeclaratively"

    4     TagPrefix="uc1" %>

    5 

    6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

    7     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    8 

    9 <script runat="server">

   10 

   11 </script>

   12 

   13 <html xmlns="http://www.w3.org/1999/xhtml" >

   14 <head runat="server">

   15     <title>Untitled Page</title>

   16 </head>

   17 <body>

   18     <form id="form1" runat="server">

   19     <div>

   20         <uc1:PropertySetDeclaratively ID="PropertySetDeclaratively1" runat="server" ShowValue="13" />

   21     </div>

   22     </form>

   23 </body>

   24 </html>

In the syntax on line 20 you see that the ShowValue, the public property on the user control, is set to 13. Once rendered the Label will be filled up with the passed content. Also be aware that the declaratively set property is filled up even before the OnInit event of the user control gets handled.

As a nice side effect we can also turn off ViewState for the Label control because it gets set automatically on each page call, be it either an initial request or a postback. You turn of Viewstate of a control by setting its EnableViewState property to false.

Grz, Kris.

Friday, July 21, 2006 7:39:14 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

IIS7 hasn't shipped yet but will be available in Vista and Longhorn server. It provides better ways to extend it and configure it. There's also already some nice video content about the subject:

Microsoft also provides the possibility to test drive it on one of their Virtual Labs.

Grz, Kris.

.NET 2.0 | ASP.NET | Windows | IIS
Friday, July 21, 2006 9:13:00 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, July 17, 2006

I finally gave Windows Desktop Search a try. It still needs to index quite some files but I already like it a lot. Since I have a lot of documents containing code on my development PC I can use the tool to quickly search in all files at once.

If you're interested you can go the files here: Windows Desktop Search, or take the tour.

I also found an interesting article related to this: Bring Windows Desktop Search Into Visual Studio With Our Cool Add-In. I didn't try that one out yet.

Grz, Kris.

Monday, July 17, 2006 5:50:14 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 

I just found out about this site. It's an overview of free/payware widgets/addins: Team System Widgets.

Grz, Kris.

kick it on DotNetKicks.com

Monday, July 17, 2006 7:09:40 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |