注册 登录
编程论坛 ASP技术论坛

请各位大侠帮我看看哪里有问题

jilingxf 发布于 2012-01-23 13:23, 429 次点击
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!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=utf-8" />
<title>无标题文档</title>
</head>

<body>
<table width="908" border="1">
  <caption>
    猪场设置
  </caption>
  <tr>
    <th width="212" scope="col">项目</th>
    <th width="146" scope="col">单位</th>
    <th width="528" scope="col">内容</th>
  </tr>
  <tr>
    <td>场名</td>
    <td>-</td>
    <td><%
        dim bb,connstr
        connstr="provider=microsoft.jet.oledb.4.0;data source=" & server.mappath ("E:\web\predgree\data\bjlm.mdb")
        set bb=server.createobject ("adodb.connection")
        bb.open connstr
        %>
    </td>
  </tr>
  <tr>
    <td>场代码</td>
    <td>-</td>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>
1 回复
#2
yms1232012-01-29 12:38
server.mappath ("E:\web\predgree\data\bjlm.mdb")
Server.mapPath为什么要用绝对的物理路径?
1