Anbei wie versprochen die Demos (454KB) und Slides (2,19MB) zum meinem ASP.NET Ajax TechTalk.
Viel Spaß!
Daniel
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
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>
Unfortunately the comments will be send down to the client together with the remaining markup.
Fortunately ASP.NET supports a little known feature called “server-side comments” (<%-- --%>) which removes comments on the server. Check out the enhanced code...
<%--
--%>
...together with the new output (behold the missing comments...). Pretty sweet, eh?
Enjoy!
* 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 ;-)
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! :-)
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:
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
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!