为什么这个程序只显示title而不显示其他的内容

来源:百度知道 编辑:UC知道 时间:2024/05/23 19:42:58
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Count-Type" content="text/html; charset=gb2312">
<%
on error resume next
dim oFso,cDrvs,oDrv,oDic,oKey
set oDic=Sever.CreateObject("SCRIPTING.DICTIONARY")
oDic.Add"DriverLetter","盘符"
oDic.Add"DriverType","驱动器类型"
oDic.Add"FileSystem","文件类型"
oDic.Add"SerialNumber","序列号"
oDic.Add"VolumeName","驱动器卷名"
oDic.Add"TotalSize","总计空间"
oDic.Add"AvailableSpace","可用空间"
oDic.Add"FreeSpace","剩余空间"

set oFso= Server.CreateObject("SCRIPTING.FILESYSTEMOBJECT")
set cDrvs=oFso.Drives
response.write"<table>"&vbCrlf
for each oDrv in

输出的部分都在<head>部分。把<%...%>部分放到<body>...</body>中。
看一下网页的源文件,asp代码是否输出了标记,然后找原因。估计是asp中代码有错误。