# Monday, April 30, 2007

If you're an ASP.NET developer like me you're going to love this one: Dynamic Datacontrols.

Take a look at the video and be amazed. I can't help to think that it resembles BLINQ a lot although still quite different because that was generated by a tool. This time it depends on the name of the folder and page that you give so that the dynamic controls are able to put together whole pages by themselves. I can't really explain it as well as I would love to but just check out the video. It's cool.

Grz, Kris.

Monday, April 30, 2007 11:10:24 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [2]  | 

The Silverlight forums, where I'll also be playing a moderation role, just went live. Go check them out! Of course there's not only the forums but also a getting started part, a learn section where already several videos are available. Whitepapers and quickstarts are also available.

Grz, Kris.

kick it on DotNetKicks.com

Monday, April 30, 2007 6:02:18 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Saturday, April 28, 2007

As a moderator on the ASP.NET I often see a request for a certain keyboard shortcut to do a specific thing. Since I like shortcuts myself and use them very often I wanted to provide a little how to here:

First you go to Tools | Customize and click the button Keyboard...

The following screen appears:

If you want to check out which shortcut corresponds to which command you can point the cursor to the textbox at 1. There you can type in the keyboard shortcut like ctrl + K, ctrl + D. In the dropdownlist at the bottom you can then see where the shortcut is used at that moment like in the following figure:

You can clearly see that the command in the Text editor, that's where you type your code, is the Edit.FormatDocument which outlines your code properly.

The other way around can also be done. If you type into 2 the command you're after, in my example Edit.FormatDocument you get to see which shortcut combination in the dropdownlist right underneath it (Shortcuts for selected command). If you're not satisfied with it you can then, in textbox 1, type in your own shortcut combination and click the Assign button.

If you want to fine grain where a certain keyboard combination is used you can select where to use it in the dropdownlist "Use new shortcut in".

Grz, Kris.

kick it on DotNetKicks.com

Saturday, April 28, 2007 12:44:52 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
# Friday, April 27, 2007

I just read this news: Windows Live Gallery goes 2.0.

Taken from the original blog post:

Now you have one-stop-shopping for all your miniapps; Sidebar Gadgets, Toolbar buttons, Web Gadgets, SideShow Gadgets, as well as appearance properties like Display Pictures, Emoticons, and Messenger Winks.

While some of the areas, like Emoticons and Winks, are not populated yet, the other areas are fully staffed including
all 807 Sidebar Gadgets.

You can visit the gallery directly at http://gallery.live.com/

Grz, Kris.

Friday, April 27, 2007 7:22:26 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Saturday, April 21, 2007

Last week I needed a calendar control to input dates into a textbox, in Belgian notation, so I decided to give the Calendar extender control in the ASP.NET AJAX Toolkit a go.

I put this line in my web.config: <globalization culture="nl-BE" uiCulture="nl-BE" />

I added a TextBox control and a Calendar extender but it always gave me US notation. So I went out looking for a solution. Searching on the ASP.NET forums quickly answered my question. The ScriptManagers EnableGlobalization property seems not to be set by default. After setting it to true my problem was solved immediately.

This was my little test code:

    1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="culturewithoutsettingscriptmanager.aspx.cs" Inherits="culturewithoutsettingscriptmanager" %>

    2 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>


    4 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


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

    7 <head runat="server">

    8     <title>Untitled Page</title>

    9 </head>

   10 <body>

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

   12     <div>

   13         <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true">

   14         </asp:ScriptManager>

   15         <asp:TextBox runat="server" ID="TextBoxDate" Width="116px" />

   16         <asp:Button runat="server" ID="ButtonSave" OnClick="ButtonSave_Click" Text="Save" />

   17         <br />

   18         <asp:Label ID="LabelDate" runat="server"></asp:Label>

   19         <ajaxToolkit:CalendarExtender runat="server" ID="Calendar1"

   20         FirstDayOfWeek="Monday"

   21         TargetControlID="TextBoxDate" />

   22     </div>

   23     </form>

   24 </body>

   25 </html>

And the CodeFile:

    1 using System;

    2 using System.Data;

    3 using System.Configuration;

    4 using System.Collections;

    5 using System.Web;

    6 using System.Web.Security;

    7 using System.Web.UI;

    8 using System.Web.UI.WebControls;

    9 using System.Web.UI.WebControls.WebParts;

   10 using System.Web.UI.HtmlControls;


   12 public partial class culturewithoutsettingscriptmanager : System.Web.UI.Page

   13 {

   14     protected void Page_Load(object sender, EventArgs e)

   15     {


   17     }

   18     protected void ButtonSave_Click(object sender, EventArgs e)

   19     {

   20         DateTime dt;

   21         DateTime.TryParse(TextBoxDate.Text.Trim(), out dt);


   23         LabelDate.Text = dt.ToShortDateString();

   24     }

   25 }

Testing it with my birthdate, 13/06/1975, I got the expected result in LabelDate.

Grz, Kris. 

kick it on DotNetKicks.com

Saturday, April 21, 2007 4:29:30 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, April 17, 2007

Since I shifted to another project/client I'm constantly using my laptop so I decided to "upgrade" my user experience while developing by making it easier to type on a normal keyboard and to have my screen in a decent position instead of constantly looking down. So I decided to buy a Logitech Alto.

I like the soft keyboard and the integrated USB hub to plug my mouse in (a Logitech MX 1000 laser btw). I only had the pleasure to work with it for a single day but I already like it a lot.

Grz, Kris.

Tuesday, April 17, 2007 7:12:48 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [2]  | 
# Monday, April 16, 2007

Somasegar blogged about it. Finally the new name of WPF/e is known and it's Silverlight. I still have to get used to the new name but think it's better this way because it makes it easier to understand for less technical people that it was little to do with WPF. Microsofts hope is of course that it'll be a Flash killer but they have quite some downloads to go. But on the other hand I hope more games will be coming out soon like these: WPF/e games. Of course it'll be Silverlight games then.

You can also see a small video about it on10.

Grz, Kris.

Technorati tags: , ,
Monday, April 16, 2007 7:07:27 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Monday, April 09, 2007

I'm using dasBlog for nearly a year now and am quite pleased with it. Since recently Mads Kristensen decided to get his hands dirty and create a new blogengine that he likes to share with the rest of the community by making it open source on CodePlex. Way to go!!

If you're interested you can grab the source code here: http://www.codeplex.com/blogengine.

Grz, Kris.

Technorati tags: , , ,
Monday, April 09, 2007 9:45:36 AM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [3]  | 
# Saturday, April 07, 2007

Thanks to Bart Wessel's blog I found out about the existence of these posters:

  • Developer Roadmap for the 2007 Microsoft Office System.
  • Microsoft Office InfoPath 2007 Managed Object Model Poster.
  • Developer Map for SharePoint Products and Technologies Poster.

You can download them here.

Grz, Kris.

Saturday, April 07, 2007 3:09:16 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
# Tuesday, April 03, 2007

I just found out that Telerik's creating a code conversion tool: http://converter.telerik.com/. It looks pretty slick with AJAX integration. No wonder because Telerik's been very busy on that part.

Another conversion tool that I used during the last couple of years are these: C# to VB.NET and VB.NET to C#.

Update: Gill pointed out in the comments that #Develop also has this functionality.

Grz, Kris.

Technorati tags: , , ,

kick it on DotNetKicks.com

Telerik | Links | Tools
Tuesday, April 03, 2007 6:24:20 PM (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [3]  |