As the number of website access increases, each time the database is read, it is at the cost of efficiency. Many of the ACCESS database will be more deeply appreciated. When the static page is searched, it will also be given priority. This article contains a simple example of generating HTML pure static pages through ASP. Detailed explanation of the relevant static ASP technology and knowledge in the article, welcome to give you some support and help in this area! The following is the details:
Principle: Transfer variables through the browser, such as
http://127.0.0.1/shengcheng.asp?id=90
Code:
If Savefile (/New/&ID&.HTML, Http://127.0.0.1/news.asp?id=&ID&) then
/new&ID&HTML, is the files and paths you generated. http://127.0.0.1/news.asp?id=&ID h is the path of ASP
You can set up a modification by yourself, of which & ID & is a variable for reading browsers. The URL is changed to your own.
How to use, add a connection to your article list, such as http://127.0.0.1/shengcheng.asp?id=90
90 This variable, I believe everyone will call it, so that you can generate HTML articles arranged according to ID in the/new directory
Shengcheng.asp file is as follows:
The program code (for alixixi.com) is as follows: