高手.帮看看这段ASP代码有什么错误!!

来源:百度知道 编辑:UC知道 时间:2024/05/03 04:08:19
请先看这段代码<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>测试</title>
</head>
<body>
<% If request("username")="" Then %>
<% Response.Write "<script> window.alert('必须填写用户名!'); location.href='1.asp';</script>" %>
<% ElseIf request("password")="" The

Response.Write"<table width='200' height='200' border='1' align='center'> "

最后要有结束的双引号!!!

改为Response.Write"<table width=200 height=200 border=1 align=center>" %>式一下

缺少%>结束符