100分求JQUERY get连数据库问题<script type="text/javascript" src="jquery.pack.js"></script>
<script language="javascript">
$.get("test.asp",{act:"cwmain"},
function(data)
{
$("#cwmain").html(data);
}
);
</script><table width="406" height="457" border="0" cellpadding="0" cellspacing="0" style="background:url(Images/1.gif) no-repeat" id="cwmain"></table>
test.asp
<!--#include file="Const.asp" -->//加上这句就完蛋了 不显示了,不加就是显示了,
//这是怎么回事呢?这个就是连数据库的一个东西啊~
//求解!!也不报错~,不知道怎么回事!
<%
dim act
act=request.QueryString("act")
if act="cwmain" then
call list()
end if
sub list
Response.Write"<tr>"
Response.Write"<td width=""522"" height=""244"">"
Response.Write" </td>"
Response.Write" </tr>"
end sub%>
<script language="javascript">
$.get("test.asp",{act:"cwmain"},
function(data)
{
$("#cwmain").html(data);
}
);
</script><table width="406" height="457" border="0" cellpadding="0" cellspacing="0" style="background:url(Images/1.gif) no-repeat" id="cwmain"></table>
test.asp
<!--#include file="Const.asp" -->//加上这句就完蛋了 不显示了,不加就是显示了,
//这是怎么回事呢?这个就是连数据库的一个东西啊~
//求解!!也不报错~,不知道怎么回事!
<%
dim act
act=request.QueryString("act")
if act="cwmain" then
call list()
end if
sub list
Response.Write"<tr>"
Response.Write"<td width=""522"" height=""244"">"
Response.Write" </td>"
Response.Write" </tr>"
end sub%>
就可以进行数据库操作
···
Set fso = Server.CreateObject("Scripting.FileSystemObject")
if fso.FolderExists(server.MapPath("include"))=false then
DB="../"&DB
end if
set fso=nothing
path=Server.MapPath(DB)
set conn=server.createobject("adodb.Connection")
connstr="provider=Microsoft.Jet.OLEDB.4.0;Data Source="&path
conn.Open connstr
Set rs=server.CreateObject("adodb.recordset")
dim act
act=request.QueryString("act")
if act="cwmain" then
call list()
end if
sub list
Response.Write"<tr>"
Response.Write"<td width=""522"" height=""244"">"
Response.Write" </td>"
Response.Write" </tr>"
end sub%><script type="text/javascript" src="jquery.pack.js"></script>
<script language="javascript">
$.get("test.asp",{act:"cwmain"},
function(data)
{
$("#cwmain").html(data);
}
);
</script><table width="406" height="457" border="0" cellpadding="0" cellspacing="0" style="background:url(Images/1.gif) no-repeat" id="cwmain"></table>同样代码,IIS显示,netbox不显示?为什么啊?