一.在ASP网页中加入以下代码:
1.以Excl格式保存网页内容:
response.contentType = "application/vnd.ms-excel"
response.addheader "Content-Disposition", "attachment; filename=test.xls"
2.以Word格式保存网页内容:
response.contentType = "application/vnd.ms-word"
response.addheader "Content-Disposition", "attachment; filename=test.doc"
3.以记事本格式保存网页内容:(保存的是网页源代码)
response.contentType = "application/vnd.ms-notpad"
response.addheader "Content-Disposition", "attachment; filename=test.txt"
二.用表格设计需要保存的内容
三.运行该网页后将会把本页出现的内容自动导入到所需格式的文件中.