| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 853 人关注过本帖
标题:请求asp连接ACCESS的问题,我今天一天都在看这个问题,但是还没解决,我是新 ...
只看楼主 加入收藏
CYCcaoyanchu
Rank: 2
等 级:论坛游民
帖 子:21
专家分:12
注 册:2012-7-9
结帖率:80%
收藏
已结贴  问题点数:20 回复次数:7 
请求asp连接ACCESS的问题,我今天一天都在看这个问题,但是还没解决,我是新手!!
我写了一个留言板,但是添加留言的时候出现错误,以下是留言板的内容:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言内容--崇州市英藤幼儿园</title>
<link href="a.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
    window.onload = function () {
            document.getElementById("name").focus();
        }

</script>
</head>
<body>
<table width="966" height="656" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
  <tr>
    <td height="215" align="left" valign="top"><table width="950" height="451" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="229" height="451"><table width="217" height="451" border="0" align="right" cellpadding="0" cellspacing="0" class="lbg">
      <tr>
        <td width="217" height="276" valign="top" style="margin-top:20px">
              <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p><div style=" font-family:微软雅黑; font-size:17px; color:#F9F">(1)留言者不能发布任何不符合当地法规、国家法律和国际法律的资料; </p></div>
            <div style=" font-family:微软雅黑; font-size:17px; color:#F9F">(2)留言者不得发布任何非法的、骚扰性的、中伤他人的、辱骂性的、恐吓性的、伤害性的、庸俗的,淫秽等信息资料;</div>
</p></td>
      </tr>
      <tr>
        <td height="175"><img src="img/tu1.gif" width="217" height="175" /></td>
      </tr>
</table></td>
        <td width="1" valign="top" background="img/bg2.jpg">
            <form action="MessageContent.asp" method="post" name="Message">
        <div id="Layer1" style="position: absolute; width: 690px; height: 46px; z-index: 3; background-color: #F0F6FD; layer-background-color: #F0F6FD;
         border: 1px  #000000; top: 425px; left: 615px;">
         <div style="font-size:15px; font-family:微软雅黑; margin-top:10px; margin-left:30px;"><a style="text-decoration:none; color:#F9F" href="index.asp">首页&nbsp;&nbsp;&nbsp;
         <a style="text-decoration:none; color:#F9F" href="ly/login.asp">留言管理
         </div>
         </div>
         <td width="620" height="400"> <div style="width:620px; height:380px; margin-left:30px;">
         <div style=" width:300px; height:330px; margin-top:20px; float:left">
             <div style=" width:290px; height:40px; font-size:15px; font-family:微软雅黑;">姓名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="name" id="name"  />&nbsp;&nbsp;&nbsp;*
            </div>
            <p></p>
            <div style=" width:290px; height:40px; font-size:15px; font-family:微软雅黑;">Email:&nbsp;&nbsp;&nbsp;
            <input type="text" name="email"  />&nbsp;&nbsp;&nbsp;*
            </div>
            <p></p>
             <div style=" width:290px; height:40px; font-size:15px; font-family:微软雅黑;">来自:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="fromwhere"  />&nbsp;&nbsp;&nbsp;*
            </div>
            <p></p>
            <div style=" width:290px; height:40px; font-size:15px; font-family:微软雅黑;">Q Q:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="qq"  />&nbsp;&nbsp;&nbsp;*
            </div>
            <p></p>
             <div style=" width:290px; height:40px; font-size:15px; font-family:微软雅黑;">标题:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="text" name="contenttop"  />&nbsp;&nbsp;&nbsp;*
            </div>
         </div>
          <div style=" width:300px; height:330px; margin-top:20px; float:left">
          <div style=" width:290px; height:20px; font-size:15px; font-family:微软雅黑;">内容:<div></div>
          </div>
          <div style="margin-left:1px">
          <p></p><textarea name=content rows=4 cols=40 type="text"></textarea></div>
          <div style="width:290px; height:50px; margin-top:5px">
              <p></p>
            <div style=" margin-left:75px"><input type="submit" name="submit" value="发表留言" />&nbsp;&nbsp;&nbsp;<input type="submit" name="clear" value="重写留言" /></div>
          </div>
          </div>
          </form>
    </table>
  </tr>
  <tr>
    <td><!--#include file="foot.asp"--></td>
  </tr>
</body>
</html>

提交到MessageContent.asp页面时出错了,以下是MessageConection.asp的代码:<%@LANGUAGE="VBSCRIPT" %>
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>留言查看--崇州市英藤幼儿园</title>
<link href="a.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="966" height="656" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td><!--#include file="top.asp"--></td>
  </tr>
  <tr>
    <td height="215" align="left" valign="top"><table width="950" height="451" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="229" height="451"><table width="217" height="451" border="0" align="right" cellpadding="0" cellspacing="0" class="lbg">
      <tr>
        <td width="217" height="276" valign="top" style="margin-top:20px">
              <p>&nbsp;</p>
            <p>&nbsp;</p>
            <p><div style=" font-family:微软雅黑; font-size:17px; color:#F9F">(1)留言者不能发布任何不符合当地法规、国家法律和国际法律的资料; </p></div>
            <div style=" font-family:微软雅黑; font-size:17px; color:#F9F">(2)留言者不得发布任何非法的、骚扰性的、中伤他人的、辱骂性的、恐吓性的、伤害性的、庸俗的,淫秽等信息资料;</div>
</p></td>
      </tr>
      <tr>
        <td height="175"><img src="img/tu1.gif" width="217" height="175" /></td>
      </tr>
</table></td>
        <td width="1" valign="top" background="img/bg2.jpg">
        <div id="Layer1" style="position: absolute; width: 690px; height: 46px; z-index: 3; background-color: #F0F6FD; layer-background-color: #F0F6FD;
         border: 1px  #000000; top: 425px; left: 615px;">
         <div style="font-size:15px; font-family:微软雅黑; margin-top:10px; margin-left:30px;"><a style="text-decoration:none; color:#F9F" href="index.asp">首页
         </div>
         </div>
         <td width="620" height="400"> <div style="width:620px; height:380px; margin-left:30px;">
         <%
            name=request.Form("name")   '读取表单元素
            Email=request.Form("email")
            fromwhere=request.Form("fromwhere")
            QQ=request.Form("qq")
            contenttop=request.Form("contenttop")
            content=request.Form("content")
        
            exec="insert into yhly(name,Email,fromwhere,qq,contenttop,content) values('"+name+"','"+Email+"','"+formwhere+"','"+QQ+"','"+contenttop+"','"+content+"')"   
            conn.execute exec
            conn.close
            set conn=nothing
            Response.Write("<script>alert("留言添加成功!!");</script>")
        %>
    </table>
  </tr>
  <tr>
    <td><!--#include file="foot.asp"--></td>
  </tr>
</body>
</html>

出现了这样的错误:500错误呀!!

网站无法显示该页面
 HTTP 500
最可能的原因是:
•该网站正在进行维护。
•该网站有程序错误。
您可以尝试以下操作:
刷新该页面。

返回到上一页。


搜索更多相关主题的帖子: html function content 崇州市 
2012-07-09 17:14
coretear
Rank: 4
等 级:业余侠客
威 望:1
帖 子:102
专家分:244
注 册:2012-6-5
收藏
得分:20 
按照我的步骤如下操作 ie浏览器 alt键-工具- internet选项-高级-显示友好的http错误信息-把勾去掉-保存然后刷新页面进行提交,把错误传上来
2012-07-09 17:30
lxb0592
Rank: 1
等 级:新手上路
帖 子:108
专家分:0
注 册:2012-5-28
收藏
得分:0 
留言板所在文件夹右键 安全 添加个everyone 用户, 给这个用户 所有权限。 再试试看!
2012-07-09 19:21
netlin
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:贵宾
威 望:24
帖 子:544
专家分:4308
注 册:2012-4-9
收藏
得分:0 
我估计是数据库文件的写权没有被授予!

做自己喜欢的事!
2012-07-09 23:41
CYCcaoyanchu
Rank: 2
等 级:论坛游民
帖 子:21
专家分:12
注 册:2012-7-9
收藏
得分:0 
回复 3楼 lxb0592
我登录的权限是Admidistrators,只有一个特殊权限没有,其他的都有!!
2012-07-10 09:00
CYCcaoyanchu
Rank: 2
等 级:论坛游民
帖 子:21
专家分:12
注 册:2012-7-9
收藏
得分:0 
回复 2楼 coretear
我勾选掉后,重新打开,它又还原了!!!
2012-07-10 09:09
CYCcaoyanchu
Rank: 2
等 级:论坛游民
帖 子:21
专家分:12
注 册:2012-7-9
收藏
得分:0 
我已经找到了,就是因为我的一个<javascript>里面的提示消息用的双引号,改成单引号就成功了!!
2012-07-10 17:27
shaoyongyang
Rank: 2
等 级:论坛游民
帖 子:20
专家分:25
注 册:2012-7-12
收藏
得分:0 
....
2012-07-12 08:22
快速回复:请求asp连接ACCESS的问题,我今天一天都在看这个问题,但是还没解决, ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021803 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved