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 5:05:58 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 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 4:59:58 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 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 6:39:14 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback

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.

 |  |  | 
Friday, July 21, 2006 8:13:00 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 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 4:50:14 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback

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 6:09:40 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Friday, July 14, 2006
 | 
Friday, July 14, 2006 7:48:57 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [2]  |  Trackback
 Wednesday, July 12, 2006

You read that right: it's free. Take a look at http://www.microsoft.com/windows/virtualpc/. You'll find on this page the great news, whitepapers, ...
Also the announcement was made that Virtual PC 2007 will also be free when it ships.

Grz, Kris.

Wednesday, July 12, 2006 8:06:27 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Monday, July 10, 2006

When ASP.NET 2.0 was still out of reach for most people I already found on the internet a great looking diagram I downloaded in the past. All credits go to the original designer of the diagram: Léon Andrianarivony. Because I couldn't find the original blogpost anymore I decided to share it with you, the readers of this blog. Enjoy!

Grz, Kris.

kick it on DotNetKicks.com

Monday, July 10, 2006 5:48:47 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [2]  |  Trackback
 Sunday, July 09, 2006

I found out about this new page on ASP.NET, thanks to PeteL and Brian Goldfarb: By the Community, For the Community.

The By The Community, For the Community samples series will create ASP.NET samples that are in high demand. These samples will not be created by Microsoft but instead by a select group of ASP.NET community member MVPs. You can see their bios below.

On a regular basis, starting Friday July 7th, we will publish a list of potential samples and allow the community to vote on which sample they are most interested in seeing developed. After the voting ends, the select MVPs will then create the sample using best practices. The samples will be published and then linked to from this page on www.asp.net.

So go out and vote for the stuff that you want these guys to create! Personally I love this idea. There are a lot of smart people out there with an MVP status and they're getting more attention. Just think of the Wrox book MVP hacks for example. The ASP.NET forums also have a bunch of MVP people hanging around to help out other people.

Grz, Kris.

Sunday, July 09, 2006 11:14:02 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback