Fabrice's weblog

Tools and Source

News


Read sample chapters or buy LINQ in Action now!
Our LINQ book is also available on AMAZON

.NET jobs

Emplois .NET

The views expressed on this weblog are mine alone and do not necessarily reflect the views of my employer. The content of this weblog is independent from Microsoft or any other company. transatlantys hot news

Contact

Me

Others

Selected content

January 2006 - Posts

Visual Studio 2005 code snippets for C#

Microsoft has released additional Visual Studio 2005 code snippets for C#.

Those are task-based code snippets that are included in the box for VB.NET, but not for C#. They can help you with programming tasks ranging from working with databases and windows applications to writing mobile device applications and networking programs.

Les Journées d'XP et de l'Agilité à Paris

XP Day(s) France 2006, les journées d'XP et de l'agilité, ont lieu à Paris les 23 et 24 mars 2006.

Le programme semble très intéressant, avec des retours d'expérience, des débats, des idées, la présentation d'outils et la présence de personnalités du monde agile.

Un événement à ne pas manquer pour vous initier aux méthodes agiles et sortir du piège des méthodes mammouths.

Posted: Jan 31 2006, 04:01 PM by Fabrice Marguerie | with no comments
Filed under:
Discussion group for PageMethods
I've just created a Google Group for PageMethods.
If you have questions or suggestions, feel free to join the discussion!
Posted: Jan 27 2006, 12:13 AM by Fabrice Marguerie | with no comments
Filed under:
XML documentation helper tool

Travis Illig has a great Visual Studio add-in that allows you to see a preview of your XML document comments in real-time, as you edit the comments.

CR_Documentor offers the ability to choose the level of tags you want to be "compatible" with, the manner in which "unrecognized" tags are handled, and other formatting options. It also offers context-menu support to aid in working with XML documentation comments, including inserting templates, embedding selections in templates, toggling outlining on XML doc comments, and toggling visibility of the CR_Documentor window.

CR_Documentor is based on the code of the original Documentor from Lutz Roeder (of .NET Reflector's fame).
It's good to see that Documentor did not disappear completely and comes back nicely improved!

PS: Reflector has been updated with support for web proxies, string search, Google and MSDN search, font customization, print preview, and generics fixes. A great release!

Posted: Jan 24 2006, 03:48 PM by Fabrice Marguerie | with no comments
Filed under:
Holophony

Put your headphones on and listen to this mp3...
I haven't tried but apparently it also works with stereo speakers (not surround ones though).

This is not new but I didn't know about it. It's holophonic sound.
This mp3 comes from this page.

Posted: Jan 24 2006, 02:53 PM by Fabrice Marguerie | with no comments
Filed under:
Are you GSCP certified?

These days a new programming paradigm is gaining momentum: GSCP.
In fact, a lot of us already practice it even without knowing it. What does GSCP mean, will you ask... Simply Google Search, Copy/Paste!

Spotted in the German magazine dot.net magazin. (thanks Florian)

Are you GSCP certified?

Posted: Jan 18 2006, 07:51 PM by Fabrice Marguerie | with no comments
Filed under:
Windows Live is revolutionary, or so claims Microsoft at least

I've never used Windows Live and I don't think I need it, but it seems fabulous.
Just look at its latest feature:

Browser back behavior (we're really excited about this one in particular :) )
Click on a search result, filters, pages and click the browser back to go back to your previous search results/state

Great, these guys have just invented the browser's Back button! 13 years later or something?
Ever felt like there was a problem with other search web sites?

Posted: Jan 12 2006, 05:27 PM by Fabrice Marguerie | with 6 comment(s)
Filed under:
URL rewriting breaks ASP.NET 2's themes

If you try to use URL rewriting and ASP.NET 2 themes at the same time, you will likely get broken pages, because the two don't mix very well.
A typical link to a theme's stylesheet looks like this in the generated HTML:
<link href="App_Themes/Theme1/StyleSheet.css" type="text/css" rel="stylesheet" />
The problem is that these links to CSS documents are using relative paths, which is not going to work fine if you use RewritePath on your web requests.

Update: as Scott and Wilco wrote in comments, a much simpler solution is to use the new overload of the RewritePath method that takes one additional parameter named "rebaseClientPath".

Thomas Bandt has a solution, described in German (the source is available), that relies on response filters.
Here is another solution I use. It consists on overriding the Render method in a base page or in a master page:

protected override void Render(HtmlTextWriter writer)
{
  foreach (Control control in Page.Header.Controls)
  {
    HtmlLink  link;

    link = control as HtmlLink;
    if ((link != null) && link.Href.StartsWith("~/"))
    {
      if (Request.ApplicationPath == "/")
        link.Href = link.Href.Substring(1);
      else
        link.Href = Request.ApplicationPath+"/"+link.Href.Substring("~/".Length);
    }
  }
  base.Render(writer);
}

ASP.NET 2 weblogs
I'm back to working on web applications and this time it is with ASP.NET 2 of course.
To help you get started with the new ASP.NET version, here are some great weblogs you don't want to miss:
Good places where you'll find a lot of tips as well as code samples, tutorials or the latest news about ASP.NET and Atlas.
I probably missed some, but this is a good start. Any suggestion?
More Posts