Do you avoid using ASP/ASP.NET tags in plain HTML?

Last updated by Brook Jeynes [SSW] 10 months ago.See history

ASP and ASP.NET tags have no place in plain HTML pages. They simply increase the size of the file and are ignored by browsers, because the need to be processed on the server. When converting ASP.NET pages to plain HTML you must be careful to remove all of these tags.

<%@ Page Language="C#" %>
<ssw:inctop id="inctop" runat="server"></ssw:inctop>

Figure: Bad example - ASP.NET tags accidentaly placed in a plain HTML documents

We have a program called SSW Code Auditor to check for this rule.

We open source. Powered by GitHub