用dw制作的登陆页面跳转错误??

CL1027 2011-03-24 12:42:35
An error occurred on the server when processing the URL. Please contact the system administrator.

If you are the system administrator please click here to find out more about this error.
...全文
292 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
CL1027 2011-03-24
  • 打赏
  • 举报
回复
<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
var Recordset1 = Server.CreateObject("ADODB.Recordset");
Recordset1.ActiveConnection = MM_conn_STRING;
Recordset1.Source = "SELECT * FROM student";
Recordset1.CursorType = 0;
Recordset1.CursorLocation = 2;
Recordset1.LockType = 1;
Recordset1.Open();
var Recordset1_numRows = 0;
%>
<%
// *** Validate request to log in to this site.
var MM_LoginAction = Request.ServerVariables("URL");
if (Request.QueryString!="") MM_LoginAction += "?" + Server.HTMLEncode(Request.QueryString);
var MM_valUsername=String(Request.Form("textfield"));
if (MM_valUsername != "undefined") {
var MM_fldUserAuthorization="";
var MM_redirectLoginSuccess="enter.htm";
var MM_redirectLoginFailed="loginbad.htm";
var MM_flag="ADODB.Recordset";
var MM_rsUser = Server.CreateObject(MM_flag);
MM_rsUser.ActiveConnection = MM_conn_STRING;
MM_rsUser.Source = "SELECT s_id, s_password";
if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization;
MM_rsUser.Source += " FROM student WHERE s_id='" + MM_valUsername.replace(/'/g, "''") + "' AND s_password='" + String(Request.Form("textfield2")).replace(/'/g, "''") + "'";
MM_rsUser.CursorType = 0;
MM_rsUser.CursorLocation = 2;
MM_rsUser.LockType = 3;
MM_rsUser.Open();
if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
// username and password match - this is a valid user
Session("MM_Username") = MM_valUsername;
if (MM_fldUserAuthorization != "") {
Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value);
} else {
Session("MM_UserAuthorization") = "";
}
if (String(Request.QueryString("accessdenied")) != "undefined" && false) {
MM_redirectLoginSuccess = Request.QueryString("accessdenied");
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginSuccess);
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginFailed);
}
%>
<!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">
<!--
.STYLE1 {
font-size: 14px;
color: #3333CC;
}
-->
</style>
</head>

<body>
<div align="center"><img src="images/ksyy.JPG" width="583" height="146" /></div>
<form action="<%=MM_LoginAction%>" method="POST" name="form1" class="STYLE1" id="form1">
学号:
<label>
<input type="text" name="textfield" />
</label>
<p>密码:
<label>
<input type="text" name="textfield2" />
</label>
<label>
<input type="submit" name="Submit" value="登陆" />
</label>
</p>
</form>
<p> </p>
</body>
</html>
<%
Recordset1.Close();
%>
ycproc 2011-03-24
  • 打赏
  • 举报
回复
贴代码
w199096zx 2011-03-24
  • 打赏
  • 举报
回复
按字面意思是说的你跳转url有问题。你去检查一下吧。要把代码贴出来才知道错误具体在那个地方。
一aa一 2011-03-24
  • 打赏
  • 举报
回复
DW自动生成的代码?
flymyhelp 2011-03-24
  • 打赏
  • 举报
回复
那就是字段不存在或者修改的值与字段类型不符,看看31行。
CL1027 2011-03-24
  • 打赏
  • 举报
回复
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e07'

[Microsoft][ODBC Microsoft Access 驱动程序] 标准表达式中数据类型不匹配。

/login.asp,行 31
flymyhelp 2011-03-24
  • 打赏
  • 举报
回复
把IIS设置一下:向浏览器输出错误。服务器和浏览器可以调试错误。,,再看看错误怎样。

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧