| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 592 人关注过本帖
标题:请教高手们,是什么问题呀
只看楼主 加入收藏
ningyanhong
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2011-7-6
结帖率:80%
收藏
已结贴  问题点数:10 回复次数:3 
请教高手们,是什么问题呀
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>


<!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>k52数据监控</title>

</head>
<!--#include file="conn.asp"-->
<%
dim jd,wd

Set rs=Server.CreateObject("ADODB.Recordset")
rs.open "select jd,wd from [gp] where chexing='k52'",conn,1,1  '1,1为只读,1,3为可操作
do while not rs.eof             '循环开始
response.Cookies("jd")= rs("jd")
response.Cookies("wd")= rs("wd")   
                 '显示数据
 
   rs.movenext            '循环下一条数据
loop
rs.close                  '关闭rs记录
set rs=nothing   '清除rs记录集

%>





<body  bgcolor="#CCFFFF">



<table align="right">
<tr>
<td align="center" width="400" height="320"  background="e:\我的文件/k52t.jpg">
</td>
</tr>
</table>



<script language="JavaScript">
function myrefresh()
{
window.location.reload();
}
setTimeout('myrefresh()',5000); //指定5000毫秒页面刷新一次
</script>


<form name="cdata"  method="post"  action="" >


<table align="left" width="400" >


<tr align="center">
<td width="100%">
<div align="center">车辆运行参数</div></td>
</tr>


<tr>
<td width="166"  align="center" >车&nbsp;&nbsp;&nbsp;型:</td>
<td  align="right"><input type="text" name="cx"  align="right" > </td>
</tr>
 
 <tr>
 <td width="166" align="center">经&nbsp;&nbsp;&nbsp;度:</td>
 <td><input type="text" name="jd" id="jd" align="right"  maxlength="8" value="<%=response.Cookies("jd")%>" /></td>
 </tr>
 
 <tr>
 <td width="166" align="center">纬&nbsp;&nbsp;&nbsp;度:</td>
  <td><input type="text" name="wd"  align="right" /> </td>
 </tr>
 
 <tr>
 <td width="166" align="center">行驶速度:</td>
  <td><input type="text" name="xssd"  align="right" /> </td>
 </tr>
 
 <tr>
 <td width="166" align="center">转&nbsp;&nbsp;&nbsp;矩:</td>
  <td><input type="text" name="zj"  align="right" /> </td>
 </tr>
 
 <tr>
 <td width="166" align="center">加&nbsp;速&nbsp;度:</td>
  <td><input type="text" name="jsd"  align="right" /> </td>
 </tr>

<tr>
<td>&nbsp;&nbsp;
</td>
</tr>


<tr>
<td align="center" width="100%">车辆电池参数信息</td>
</tr>

<tr>
<td align="center" width="166">电&nbsp;&nbsp;&nbsp;压:</td>
<td><input type="text" name="dy" align="right" /></td>
</tr>

<tr>
<td align="center" width="166">电&nbsp;&nbsp;&nbsp;流:</td>
<td ><input type="text" name="dl" align="right" /></td>
</tr>

<tr>
<td align="center" width="166">剩余电量:</td>
<td><input type="text" name="sydl" align="right" /></td>
</tr>


</table>
</form>

</body>

</html>






运行结果




技术信息(用于支持人员)

错误类型:
Response 对象, ASP 0185 (0x80020003)
找不到对象的默认属性。
/k52.asp


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)


搜索更多相关主题的帖子: html 监控 content include PUBLIC 
2011-07-06 19:59
ningyanhong
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2011-7-6
收藏
得分:0 
回复 楼主 ningyanhong
在线等待哦。。。。
2011-07-06 20:00
ningyanhong
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2011-7-6
收藏
得分:0 
回复 2楼 ningyanhong
qq:1312193985   等待解决
2011-07-06 20:04
QQ273080973
Rank: 2
等 级:论坛游民
帖 子:14
专家分:39
注 册:2011-7-7
收藏
得分:7 
这个肯定会出错了,你循环读取记录不对吧。
2011-07-08 12:17
快速回复:请教高手们,是什么问题呀
数据加载中...
 
   



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

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