Chrome opens the asp file to display the source code

there is an index.asp file locally, which only shows the source code when opened with a chrome browser, and can be parsed into a html web page when opened with firefox.
change the index.asp file name to index.html, to resolve to html pages.

clipboard.png

Mar.07,2021

  1. asp files need to be parsed by a server that supports asp;
  2. firefox can be parsed, maybe the browser has processed it, or the code in it has been run;
  3. most programs parse according to the suffix name in the format of the suffix name.

  1. in general, when you open a file with a direct .asp suffix in a browser, the source code is displayed directly, no matter what kind of browser it is.
  2. to run the asp file, use iis, the web server, to parse.
Menu