ASP高手们,来帮帮我,一个困扰我2天的问题..烦恼..
来源:百度知道 编辑:UC知道 时间:2024/07/07 03:16:14
做登陆页面时,当我输入用户名及密码点“登陆”后,出现错误如下:
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务
--------------------------------------------------------------------------------
技术信息(用于支持人员)
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC 驱动程序不支持所需的属性。
/login.asp, 第 44 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
POST 47 ??? /login.asp
POST Data:
f_user=xxxyyy&f_code=123456&Submit=%B5%C7%C2%BC
时间:
2008年8月19日, 15:33:18
源代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>主页</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-bottom: 0px;
background-image: url();
background-repeat: no-repeat;
}
--
HTTP 错误 500.100 - 内部服务器错误 - ASP 错误
Internet 信息服务
--------------------------------------------------------------------------------
技术信息(用于支持人员)
错误类型:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
ODBC 驱动程序不支持所需的属性。
/login.asp, 第 44 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
POST 47 ??? /login.asp
POST Data:
f_user=xxxyyy&f_code=123456&Submit=%B5%C7%C2%BC
时间:
2008年8月19日, 15:33:18
源代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>主页</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-bottom: 0px;
background-image: url();
background-repeat: no-repeat;
}
--
db.inc.asp
这个文件出错
你把代码贴出来大家就会给你分析的
建议你这样改 db.inc.asp里面的代码
<%
dim conn
set conn=server.CreateObject("ADODB.connection")
conn.open "Dbq="&server.MapPath("dat/data.mdb")&";Driver={Microsoft Access Driver (*.mdb)}"
%>
dat/data.mdb这个表示数据库相对于db.inc.asp文件的存放路径
更改以下就好了
求助QQ 21616898
查询语句有错误:and前多了个逗号,request.form和("f_code")有空格
sql="select * from user where u_user='"& request.form("f_user") &"' and u_code='"& request.form("f_code") &"'"
之余你的<% if not session("acc") then %> 我也没这么用过,
我都是用的<% if session("acc")="" then %>
把查询语句改成这个看看。不可以了在问我
sql="select * from user where u_user='"& request.form("f_user") &"' and u_code='"& request.form ("f_code&quo