Current location - Plastic Surgery and Aesthetics Network - Wedding planning company - Which master generates the static page source code for writing ASP?
Which master generates the static page source code for writing ASP?
Generating static Html files from web pages has many advantages. For example, generating html pages is conducive to being included by search engines, which is not only fast, but also complete. The front desk is separated from data access, which reduces the pressure of database access and speeds up the opening of web pages.

Like the main station in www.aspid.cn, TSYS is used to generate html files!

Therefore, Yin Qing is interested in generating html recently, and has read many articles and gained something.

1, the following example directly uses FSO to write html code to a file, and then writes it in the. Html format

filename="test.htm "

if request(" body ")< & gt; ""then

Set fso = Server. CreateObject ("script. File system object ")

Set htmlwrite = fso. create textfile(server . mappath(" & amp; File name & ""))

Htmlwrite.write < head & gt & request.form ("title")&"

html write . write“< body & gt; Output title content: "&; Request.form ("title")&"< br/>; Output text content: "&; request . form(" body ")& amp; "

< br & gt

< textarea name="body " >body