ASP Best Practices

Previous Topic Next Topic

Checking HTML Files

You should check and debug your HTML code, using either a dedicated HTML checker or an HTML editor that has code-checking features. Choose an editor that helps enforce your HTML version standard. Check each new HTML file as it is developed. Then debug your files again each time after they are modified.

To debug a page that contains scripts

  1. Run the page that contains scripts.
  2. View the source.
  3. Save the output, which is pure HTML.
  4. Run the saved output through an HTML checker.

This process is especially important for scripts in ASP pages that include forms. In these cases, HTML errors might corrupt the browser collection values sent from the browser to the server, causing a run-time error.


© 1997-1999 Microsoft Corporation. All rights reserved.