错误类型:Request 对象, ASP 0102 (0x80004005)函数需要字符串入。/message/line.asp, 第 2 行

问题描述

<%myconn.execute("deletefrom[website].[dbo].[online]whereltime<Getdate()-0.005")lgname=Request.Cookies(cn)("lgname")//提示这行出错,我是将access数据库程序转换成sqlserver程序才出现这样的错误ip=request.servervariables("remote_addr")iflgname=""thensetjilu=myconn.execute("selectipfrom[website].[dbo].[online]whereip='"&ip&"'")ifjilu.eofthensetjilu=nothingmyconn.execute("insertinto[website].[dbo].[online](ip,ltime)VALUES('"&ip&"','"&Getdate&"')")elsemyconn.execute("update[website].[dbo].[online]setltime='"&Getdate&"'whereip='"&ip&"'")endifendififlgname<>""thensetujilu=myconn.execute("selectnamefrom[website].[dbo].[online]wherename='"&lgname&"'")ifujilu.eofthensetujilu=nothingmyconn.execute("delete*from[website].[dbo].[online]whereip='"&ip&"'")myconn.execute("insertinto[website].[dbo].[online](name,ltime)VALUES('"&lgname&"','"&Getdate&"')")elsemyconn.execute("update[website].[dbo].[online]setltime='"&Getdate&"'wherename='"&Getdate&"'")endifendifusno=myconn.execute("Selectcount(ltime)from[website].[dbo].[online]wherename<>''")(0)lineno=myconn.execute("Selectcount(ltime)from[website].[dbo].[online]")(0)iflineno>mostonlinethenmyconn.execute("update[website].[dbo].[bbsinfo]setmostonline='"&lineno&"'")mostonline=linenoendifnusno=lineno-usno%>

解决方案

解决方案二:
之前你的cookie是否存入值lgname=Request.Cookies(cn)("lgname")
解决方案三:
cn是变量吗?是变量的话有没有值?

时间: 2024-07-30 10:19:16

错误类型:Request 对象, ASP 0102 (0x80004005)函数需要字符串入。/message/line.asp, 第 2 行的相关文章

Request 对象, ASP 0102 (0x80004005)

错误类型: Request 对象, ASP 0102 (0x80004005) 函数需要字符串输入./gero/bbs/win/demo/upload.asp, 第 5 行   浏览器类型: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon)   网页: GET /gero/bbs/win/demo/upload.asp   时间: 2008年2月25日, 15:00:44 代码如下就一句: id =request.querys

asp ADO GetString函数与用GetString来提高ASP的速度第1/2页_应用技巧

rs.getstring的方法GetString的作用是:以字符串的形式返回指定的记录集.可以使用这个方法向ASP文件中添加HTML表格.getstring 方法语法 Set str=objRecordset.GetString(format,n,coldel,rowdel,nullexpr)  Parameter参数 Description描述 format Optional. A StringFormatEnum value that specifies the format when re

asp ADO GetString函数与用GetString来提高ASP的速度第1/2页

rs.getstring的方法GetString的作用是:以字符串的形式返回指定的记录集.可以使用这个方法向ASP文件中添加HTML表格. getstring 方法语法 Set str=objRecordset.GetString(format,n,coldel,rowdel,nullexpr)  Parameter参数 Description描述 format Optional. A StringFormatEnum value that specifies the format when r

asp中join函数实现字符串连接

(list[,delimiter]) 参数 描述 list Required. A one-dimensional array that contains the substrings to be joined 必选项.包含要联接的子字符串一维数组. delimiter Optional. The character(s) used to separate the substrings in the returned string. Default is the space character

浅谈ASP中Request对象获取客户端数据的顺序

request|对象|客户端|数据 浅谈ASP中Request对象获取客户端数据的顺序 /**描述:在使用ASP Request对象时需要注意的小问题作者:慈勤强Email : cqq1978@yeah.net**/ 在ASP中Request对象是获取客户端提交数据的一个很重要的对象,大家对他也是非常熟悉了.虽然如此,还是经常有人问我下面的几种写法有什么不同,到底应该怎么写?strMessage = Request("msg")strMessage = Request.Form(&qu

&quot;Request 对象 错误 &#039;ASP 0104 : 80004005&#039;”解决办法

  Windows2003系统下,上传较大的文件时,出现"Request 对象 错误 'ASP 0104 : 80004005'"错误. 更改win2003的IIS 6.0对asp的上传文件大小为200k限制,aspx的上传程序没有影响.在IIS6.0中,默认设置是特别严格和安全的,最大只能传送 204,800 个字节,这样可以最大限度地减少因以前太宽松的超时和限制而造成的攻击.IIS 6 出于安全考虑, 默认最大请求是200K(也即最大提交数据限额为200KByte,204800By

Request 对象 错误 &#039;ASP 0104 : 80004005&#039; 不允许操作错误的处理

Request 对象 错误 'ASP 0104 : 80004005' 不允许操作 /mail/postmail.asp,行 73出现上述信息,请进行如下操作: 先在服务里关闭iis admin service服务 找到windows/system32/inesrv/下的metabase.xml, 打开,找到ASPMaxRequestEntityAllowed 把他修改为需要的值,默认为204800,即200K 然后重启iis admin service服务

错误类型:Provider (0x80004005)未指定的错误 的一个处理方法

我的电脑因为用批处理清理文件,所以不能运行了, 只 1.查看数据库连接语句没有发现错误: 2.查看文件夹的权限已经全部给了everyone: 3.打开数据库的同时,系统会在临时文件夹 %SystemRoot%/temp/ 下创建临时文件,而 % SystemRoot%/temp/ 的权限不够 解决:%SystemRoot%/temp/ 的权限加上(IUSER_电脑名的读写) 2.如果一般未指定的错误,还有个办法,先 其实只要很简单的几步.: 开始...运行...regsvr32 jscript.

错误类型:Microsoft VBScript 编译器错误 (0x800A0408)/contpage.asp, line 4, column 18

问题描述 <%SetConn=Server.CreateObject("ADODB.Connection")Connstr="DBQ="+server.mappath("cont.asp")+";DefaultDir=;DRIVER={MicrosoftAccessDriver(*.mdb)};"Conn.Openconnstr''*****以上语句用于连接库,cont.asp是库文件名.page3=request(&q