# Monday, 30 November 2009

Microsoft’s investing in CDN for a lot of their ajax scripts and also jQuery, we already knew that for a while. Now they also added support for SSL so when you use your site with https it shouldn’t give an enduser the warning anymore about mixed content. The very well known “This page contains both secure and nonsecure items” message.

There’s a whole list available out there: http://www.asp.net/ajaxlibrary/cdn.ashx.

At first I didn’t see the dataservice.js scripts anymore, the ones that enable people to use ajax against ADO.NET Data Services, I mean WCF Data Services after the product got renamed, but they also got renamed to:

  • http://ajax.microsoft.com/ajax/beta/0911/MicrosoftAjaxAdoNet.debug.js
  • http://ajax.microsoft.com/ajax/beta/0911/MicrosoftAjaxAdoNet.js

    Besides the new CDN SSL feature there’s also a new Library available for Microsoft Ajax. Also quite a lot of new tutorials have been added for the new Ajax library.

    Grz, Kris.

    Ajax | CDN | Library | Links | Microsoft Ajax | SSL
    Monday, 30 November 2009 09:01:06 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
    # Saturday, 28 November 2009

    I got this question in one of the new forums over at ASP.NET. I took a bit of time to search and this is the result I came up with:


    By default when you right click on the MDI document tab you get this context menu which will look familiar to most people from previous versions of Visual Studio.



    Use the menu and to go Tools, Customize


    Then from the new window select the second tab Commands. Check the radiobutton context menu and from the combobox choose Other Context Menus | Easy MDI Document Window:


    Click the Add Command… button and from the new window choose on the left Window and on the right Close all documents.


    Click on the OK and then on the Close button and you’re done. Nice and easy.


    Your newly added context menu item for the MDI tab in all its glory:


    Grz, Kris.

    Saturday, 28 November 2009 15:46:26 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
    # Tuesday, 24 November 2009

    Sometimes you need to find out in which tables a certain column name exists. For example when you want to find out where it’s being used as a foreign key. Here’s a handy script to use in T-SQL.

    SELECT OBJECT_NAME(object_id), * FROM sys.columns WHERE name = 'columnname'
    This makes use of the OBJECT_NAME function in T-SQL which according to the documentation: Returns the database object name for schema-scoped objects.

    Grz, Kris.

    Tuesday, 24 November 2009 09:07:02 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [2]  | 
    # Thursday, 19 November 2009

    A lot of cool stuff's coming out soon and there are already beta bits available. With beta bits there are also already videos available to look at and get familiar with what will be available.

    Enjoy watching them.

    Grz, Kris.

    Thursday, 19 November 2009 17:23:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
    # Wednesday, 18 November 2009

    I found this question on the ASP.NET forums. The member asking this question already knew that the collections were Cookies, Form, Servervariables and Querystring but wanted to know the exact order. Well I got curious but instead of making a dedicated test project I opened up Reflector. Looking up the HttpRequest class’ indexer gave me this code:

    public string this[string key]
            string str = this.QueryString[key];
            if (str != null)
                return str;
            str = this.Form[key];
            if (str != null)
                return str;
            HttpCookie cookie = this.Cookies[key];
            if (cookie != null)
                return cookie.Value;
            str = this.ServerVariables[key];
            if (str != null)
                return str;
            return null;


    It’s on the other hand always better to directly call the most specific collection directly. This avoids getting strange things in your code like expecting a key in the Form collection and getting the same key from the QueryString collection which could have a different, or none at all, value than what you expect. Fun debugging sessions follow after that…

    Grz, Kris.

    Wednesday, 18 November 2009 05:02:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
    # Monday, 16 November 2009

    A while ago I already showed several handy plugins I like to use. Of course the world keeps on turning and new plugins are created or I just happen to stumble on little gems by accident. Here are some other plugins that I like to use:

    Dust-me selectors: finds unused CSS selectors. It extracts all the selectors from all the stylesheets on the page you're viewing, then analyzes that page to see which of those selectors are not used. The data is then stored so that when testing subsequent pages, selectors can be crossed off the list as they're encountered. You can test pages individually, or spider an entire site, and you'll end up with a profile of which selectors are not used anywhere.

    View source chart: A handy way to visualize the generated html.


    Page speed: Page Speed is an open-source Firefox/Firebug Add-on. Webmasters and web developers can use Page Speed to evaluate the performance of their web pages and to get suggestions on how to improve them. A handy plugin by Google.


    Grz, Kris.

    Monday, 16 November 2009 14:01:00 (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  | 
    # Monday, 19 October 2009

    I noticed that Visual Studio 2010 Beta 2 got out for MSDN subscribers today. It’ll be available for the rest of the world on October 23rd. Also good news: next year on March 22 it’ll be there in RTW status.

    Also the new version doesn’t use the standard logo with the 4 colors again but is now a smooth looking purple/blue logo.


    Grz, Kris.

    Monday, 19 October 2009 20:41:41 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
    # Friday, 07 August 2009

    You can grab the good stuff here.

    Included is:

    The Windows 7 Training Kit for Developers includes presentations, hands-on labs, and demos. This content is based on Windows 7 RTM and it is designed to help you learn how to build applications that are compatible with and shine on Windows 7 by utilizing key Windows 7 features such as:

    • Taskbar
    • Libraries
    • Multi Touch
    • Sensors and Location
    • Ribbon
    • Trigger Start Services
    • Instrumentation and ETW
    • Application Compatability
    And Application Compatibility topics such as:
    • Version Checking
    • UAC Data Redirection
    • Session 0 Isolation
    • Installer Detection
    • User Interface Privilege Isolation
    • High DPI

    Grz, Kris.

    Friday, 07 August 2009 22:55:54 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [1]  | 
    # Friday, 31 July 2009

    Great news for the ASP.NET MVC fans. After a release of MVC 1 earlier this year today the first preview of version 2 has been placed on the download servers.

    Here are the announcements of Scott Guthrie and Phil Haack.

    Grz, Kris.

    Friday, 31 July 2009 09:21:35 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  | 
    # Monday, 27 July 2009

    Since more and more people are using ajax and as such javascript/ecmascript, you as a developer/designer need tools to make it through the day. Here are some that I like to use:

    Grz, Kris.

    Monday, 27 July 2009 09:16:03 (GMT Daylight Time, UTC+01:00)  #    Disclaimer  |  Comments [0]  |