I've always been annoyed by some of MS's sample code that does not follow their own best practices or recommendations. Today's annoyance comes from:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemWebUIPageClassRegisterStartupScriptTopic.asp
Microsoft says:
Note Remember to include HTML comment tags around your script so that it will not be rendered if a requesting browser does not support scripts
Four lines later starts the sample code, where Microsoft does:
' Form the script to be registered at client side.
Dim scriptString As String = "<script language=JavaScript> function DoClick() {"
scriptString += "showMessage2.innerHTML='<h4>Welcome to Microsoft .NET!</h4>'}"
scriptString += "function Page_Load(){ showMessage1.innerHTML="
scriptString += "'<h4>RegisterStartupScript Example</h4>'}<"
scriptString += "/"
scriptString += "script>"
Those are lovely HTML comment tags, yes?