January, 2008

  • <dw:daniel_walzenbach runat="server" />

    Demos und Slides zu dem ASP.NET Ajax TechTalk

    • 2 Comments

    Anbei wie versprochen die Demos (454KB) und Slides (2,19MB) zum meinem ASP.NET Ajax TechTalk.

    Viel Spaß!

       Daniel

  • <dw:daniel_walzenbach runat="server" />

    Why do I need the parameters === and !== in JavaScript?

    • 1 Comments

    While showing the content of MicrosoftAjax.debug.js in Lutz Roeder's fantastic .NET Reflector I got asked what the parameters === and !== in JavaScript are for (and unfortunately didn't have an answer :-( ). Well, as it turns out === and !== are Comparison Operators in JScript 5.6 and behave identically to the equality operators (== and !=) except no type conversion is done, and the types must be the same to be considered equal.
    The details can be found in the article Comparison Operators (JScript 5.6) on MSDN.

    Regards

    Daniel

  • <dw:daniel_walzenbach runat="server" />

    Server Side Comments or how to automatically remove HTML/JavaScript comments from websites

    • 2 Comments

    One difference between good and bad code are comments. Good programmers tend to comment their code to make it readable for themselves (the next day ;-) ) or for other programmers (*).

    There are situations though where one doesn't want comments to show up - like in an ASP.NET Web Application. Imagine the following simple app.

    <head runat="server">

        <title>Untitled Page</title>

        <script type="text/javascript">

            // This function does something

            // incredible :-)

            function DoSomethingIncredible() {

                alert('Hallo');

            }

        </script>

    </head>

    <body onload="DoSomethingIncredible()">

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

        <div>

       

            <asp:Label ID="Label1" runat="server" Text="Label" /><br />

            <!--

                Don't need this currently but

                am not sure if I need it in

                the future... You get my point ;-)

                <asp:Label ID="Label2" runat="server" Text="Label" />

            -->

        </div>

        </form>

    </body>

    Unfortunately the comments will be send down to the client together with the remaining markup.

    <head>
    <title>
     Untitled Page
    </title>
        <script type="text/javascript">
            // This function does something
            // incredible :-)
            function DoSomethingIncredible() {
                alert('Hallo');
            }
        </script>
    </head>
    <body onload="DoSomethingIncredible()">
        <form name="form1" method="post" action="Default.aspx" id="form1">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJOTAxMzgwODE5ZGQvR1v+z54Nn929OgLm6cscsg/+iQ==" />
    </div>     <div>
       
            <span id="Label1">Label</span><br />
            <!--
                Don't need this currently but
                am not sure if I need it in
                the future... You get my point ;-)
                <span id="Label2">Label</span>
            -->
        </div>
        </form>
    </body>

    Fortunately ASP.NET supports a little known feature called “server-side comments” (<%-- --%>) which removes comments on the server. Check out the enhanced code...

    <head runat="server">

        <title>Untitled Page</title>

        <script type="text/javascript">

            <%--

            // This function does something

            // incredible :-)

            --%>

            function DoSomethingIncredible() {

                alert('Hallo');

            }

        </script>

    </head>

    <body onload="DoSomethingIncredible()">

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

        <div>

       

            <asp:Label ID="Label1" runat="server" Text="Label" /><br />

            <%--

                Don't need this currently but

                am not sure if I need it in

                the future... You get my point ;-)

                <asp:Label ID="Label2" runat="server" Text="Label" />

            --%>

        </div>

        </form>

    </body>

    ...together with the new output (behold the missing comments...). Pretty sweet, eh? 

    <head><title>
     Untitled Page
    </title>
        <script type="text/javascript">
           
            function DoSomethingIncredible() {
                alert('Hallo');
            }
        </script>
    </head>
    <body onload="DoSomethingIncredible()">
        <form name="form1" method="post" action="Default.aspx" id="form1">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUJODExMDE5NzY5ZGTf9XGSwEVcluDmIxIb9pffNJ3tXg==" />
    </div>     <div>
       
            <span id="Label1">Label</span><br />
           
        </div>
        </form>
    </body>

    Enjoy!

       Daniel

    * O.K. Fair enough. This statement only holds true for the somewhat good programmers. The really 1337 programmers naturally don't need no 1@m3 comments ;-)

  • <dw:daniel_walzenbach runat="server" />

    ASP.NET Ajax Cheat Sheets

    • 2 Comments

    Since I am currently traveling Germany speaking about ASP.NET Ajax I wanted to let you know about Millan Negovans ASP.NET Ajax Cheat Sheets. Be sure to download them. Pure gold! :-)

       Daniel

  • <dw:daniel_walzenbach runat="server" />

    Kostenloser Download: Microsoft Visual Basic 2005 - Das Entwicklerbuch

    • 5 Comments

    Auf dem Microsoft Developer Network steht derzeit das "Microsoft Visual Basic 2005 - Das Entwicklerbuch" zum kostenlosen Download bereit :-) Dieses umfassende Arbeitsbuch zur Programmierung mit Visual Basic 2005 von Klaus Löffelmann erläutert nicht nur umfassend die objektorientierte Programmierung mit Visual Basic, sondern blickt auch hinter die Kulissen des Codes, um grundlegendes Verständnis für wichtige Details und Funktionsweisen sicher zu stellen. Behandelt werden die folgenden Themen:

    1. Einführung
    2. Ein Flug über die Weiten der Visual Studio-IDE
    3. Formular-Designer und Codeeditor enthüllt
    4. Tipps & Tricks für das angenehme Entwickeln zuhause und unterwegs
    5. Der Umstieg von Visual Basic 6.0
    6. Der Umstieg von Visual Basic.NET 2002 und 2003
    7. Vorüberlegungen zur objektorientierten Programmierung
    8. Auf zum Klassentreffen!
    9. Klassenvererbung und Polymorphie
    10. Über Structure und den Unterschied zwischen Referenz- und Wertetypen
    11. Typumwandlungen (Type Casting) und Boxing von Datentypen
    12. Beerdigen von Objekten – Dispose, Finalize und der Garbage Collector
    13. Operatoren für benutzerdefinierte Typen
    14. Generische Klassen und Strukturen (Generics)
    15. Ereignisse und Delegaten
    16. Primitive Datentypen
    17. Kulturabhängiges Formatieren von Zahlen- und Datumswerten
    18. Enums (Aufzählungen)
    19. Arrays und Auflistungen (Collections)
    20. Arbeiten mit generischen Typen und generischen Auflistungen
    21. Reguläre Ausdrücke (Regular Expressions)
    22. Serialisierung von Objekten
    23. Attribute und Reflection
    24. Eine philosophische Betrachtung der Vereinfachungen in Visual Basic 2005
    25. Der My-Namespace
    26. Das Anwendungsframework
    27. Programmieren mit Windows Forms
    28. Im Motorraum von Formularen und Steuerelementen
    29. GDI+ zum Zeichnen von Formular- und Steuerelementinhalten verwenden
    30. Entwickeln von Steuerelementen
    31. Mehreres zur gleichen Zeit erledigen – Threading in .NET
    32. SQL Server 2005 und ADO.NET
  • <dw:daniel_walzenbach runat="server" />

    RAW Codecs for Windows

    • 6 Comments

    We’ve released a page on the Pro Photo site that we will keep updated with all of the RAW format codecs that are released by the camera/software manufacturers.  You can view the page at http://www.microsoft.com/prophoto/downloads/codecs.aspx.

    Cheers

       Daniel

  • <dw:daniel_walzenbach runat="server" />

    How to get started with WCF (Windows Communication Foundation)?

    • 1 Comments

    Michele did an outstanding series of WCF webcasts for MSDN. Each webcast is 1 hour in length, touching on the fundamentals and practical approaches for your WCF development efforts.

    Additional information can be found on .NET Framework 3.0: Design on the Windows Vista Platform > Webcasts.

    Cheers!

       Daniel

Page 1 of 1 (7 items)