<%@LANGUAGE="JAVASCRIPT" CODEPAGE="936"%>
<!--#include file="../Connections/sie2.asp" -->
<%
var Rs1__MMColParam= "1";
if (String(Request.QueryString("filid")) !="undefined" && String(Request.QueryString("filid"))!="");
{
Rs1__MMColParam = String(Request.QueryString("filid"));
}
%>
<%
var Rs1_cmd = Server.CreateObject ("ADODB.Command");
Rs1_cmd.ActiveConnection = MM_sie2_STRING;
Rs1_cmd.CommandText = "SELECT filid, filurl FROM dbo.fil WHERE filid = ?";
Rs1_cmd.Prepared = true;
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 5, 1, -1, Rs1__MMColParam));
var Rs1 = Rs1_cmd.Execute();
var Rs1_numRows = 0;
Response.Redirect(Rs1.Fields.Item("filurl").value);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
</body>
</html>
<%
Rs1.Close();
%>
<%
Rs1.Close()
//Set Rs1 = Nothing
%>
技术信息(用于支持人员)
错误类型:
ADODB.Command (0x800A0D5D)
应用程序在当前操作中使用了错误类型的值。
/zhangshan/07/XIAZAI.asp, 第 15 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.21022; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729)
网页:
GET /zhangshan/07/XIAZAI.asp
求各位大侠帮帮忙
感激不尽!
5 个解决方案
#1
报错的一行是
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 5, 1, -1, Rs1__MMColParam));
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 5, 1, -1, Rs1__MMColParam));
#2
filid 是小数吗?怎么用5?改成
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 3, 1, 4, Rs1__MMColParam));
试试
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 3, 1, 4, Rs1__MMColParam));
试试
#3
还是不管用,报的错和刚才一样。求助……filid是自动编号
#4
再把var Rs1__MMColParam= "1";
改成var Rs1__MMColParam= 1;
改成var Rs1__MMColParam= 1;
#5
改好了,请问大侠,我这段代码是下载文件的功能。但其中缺少弹出保存的对话框,该怎么写代码呢
#1
报错的一行是
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 5, 1, -1, Rs1__MMColParam));
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 5, 1, -1, Rs1__MMColParam));
#2
filid 是小数吗?怎么用5?改成
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 3, 1, 4, Rs1__MMColParam));
试试
Rs1_cmd.Parameters.Append (Rs1_cmd.CreateParameter("param1", 3, 1, 4, Rs1__MMColParam));
试试
#3
还是不管用,报的错和刚才一样。求助……filid是自动编号
#4
再把var Rs1__MMColParam= "1";
改成var Rs1__MMColParam= 1;
改成var Rs1__MMColParam= 1;
#5
改好了,请问大侠,我这段代码是下载文件的功能。但其中缺少弹出保存的对话框,该怎么写代码呢