一个简单的问题 谢谢您能看完
主页是index.asp 调用的页是getdb.asp
调用方法 是这样的(当然里边有写东西是没有用的 )主要是看 getdb.asp
<SCRIPT language=JAVASCRIPT>
function window_onload()
{
var aw = screen.availWidth;
var ah = screen.availHeight;
self.moveTo(0,0);
self.resizeTo(aw, ah);
EtCell1.style.left = 0;
//EtCell1.style.top = 0;
var lWidth = document.body.offsetWidth;
//if( lWidth <= 0) lWidth = 1;
EtCell1.style.width = lWidth-5;
var lHeight = document.body.offsetHeight -EtCell1.style.top-(idTBGeneral.style.top + idTBGeneral.style.height);
if( lHeight <= 0 ) lHeight = 1;
EtCell1.style.height = lHeight-30;
//调用HttpPost()函数和后台程序GetDB.asp交互,取得数据库的一页
strURL = "GetDB.asp?PageNo=1";
strXML= EtCell1.HttpPost(strURL,"");
//把取得数据填入报表式样,以便于产生动态报表
EtCell1.ImportXML(strXML);
}
function OnListChange()
{
//根据用户选择的页吗,从数据库中取得相应的数据,填入报表中
filename = SelectFile.value;
if(filename=="")
return(false);
else
{
//调用HttpPost()函数和后台程序GetDB.asp交互,取得数据库的某一页数据
//其中GetDB.asp是真正从数据库取数的程序
strURL = "GetDB.asp?PageNo=" + filename;
strXML= EtCell1.HttpPost(strURL,"");
EtCell1.OpenDoc(EtCell1.FileName);
EtCell1.ImportXML(strXML);
}
return(true);
}
</SCRIPT>
调用的页是getdb.asp
getdb.asp里有下列文件 主要是"& produce&" 因为 我要用 getdb.asp 连接库
<%
root = server.mappath("/database")
filePath = root + "\Bus.mdb"
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath
' 查询数据库
produce=request("produce")
Set Rs =Server.CreateObject("ADODB.Recordset")
strSQL = "select * from "&produce&" where produceid="&request("produceid")
Rs.Open strSQL,Conn,adOpenStatic
-----------------------------------------
问题
-----------------------------------------
我怎么把这些="&request("produceid") "&produce&" 等
写到 getdb.asp 里
以前是这样写的 NotPrint2/MultiRow/GetDB.asp?produceid=153&produce=produce
可是现在我必须 直接访问index.asp页 写index.asp?produceid=153&produce=produce 肯定没有用