我快疯了!!快来帮我看看这段asp代码!!

来源:百度知道 编辑:UC知道 时间:2024/07/02 19:55:04
不加do loop 一切都挺正常 加了就出错!代码如下:
<!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>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:267px;
top:161px;
width:301px;
height:64px;
z-index:1;
}
-->
</style>
</head>
<% dim x
request("lxname")
if request("lxname") <> "" then
x=request("lxname")
set co

如果接受到的lxname为空,那么肯定会报错,应该把end if 调后面

<!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>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:267px;
top:161px;
width:301px;
height:64px;
z-index:1;
}
-->
</style>
</head>
<% dim x
request("lxname")
if request("lxname") <> "" then
x=request