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

Loading last updated info...

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#" %>
<html>
<ssw:inctop id="inctop" runat="server"></ssw:inctop>

❌ Figure: 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.

Authors

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star