# Monday, 31 July 2006
# Friday, 28 July 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, 28 July 2006 18:30:02 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Tuesday, 25 July 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, 25 July 2006 18:05:58 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 24 July 2006

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

Grz, Kris.

Monday, 24 July 2006 17:59:58 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, 21 July 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" %>


    3 <script runat="server">


    5     public string ShowValue

    6     {

    7         set { Label1.Text = value; }

    8     }


   10 </script>


   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#" %>


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

    4     TagPrefix="uc1" %>


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

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


    9 <script runat="server">


   11 </script>


   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, 21 July 2006 19:39:14 (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, 21 July 2006 09:13:00 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, 17 July 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, 17 July 2006 17:50:14 (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, 17 July 2006 07:09:40 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Friday, 14 July 2006
CSS | Design
Friday, 14 July 2006 20:48:57 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [2]  | 
# Wednesday, 12 July 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, 12 July 2006 21:06:27 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |