asp局部无刷新
翻了两个小时的帖子也没找到我要的方法
首先不能用iframe框架 这个东东破歪了网页的整体结构,
<div id="mainBodyer">
<table id="pic" width="496" border="0">
<!--#include file="pic.asp"-->
</table>
</div>
希望能实现这个div框架内的东西隔5秒刷新一次
div刷新、table刷新、重新读取asp都行--问题是我不会。
附上pic。asp的代码
HTML code:
<table id="pic" width="496" border="0">
<tr>
<td>
<%
set cccc=server.createobject("adodb.connection")
db="/***"
ccccstr="Provider=Microsoft.jet.oledb.4.0;data source="&server.mappath(db)
cccc.open ccccstr
'以下代码为随机读取1条记录
'连接数据库
randomize()
intrandomnumber=int(1000*rnd)+1
sql="select * from pic order by rnd("&(-1*intrandomnumber)&"*id)"
set rst=cccc.execute(sql)
response.write("<img height=290 id=tp src="&Replace(rst("address"),Chr(32),"%20")&">")%>
</td>
</tr>
<tr>
<td valign="baseline"><%=rst("name")%>
</td>
</tr>
<%
rst.close
set rst=nothing
cccc.close
set cccc=nothing
%></table>
<
相关问答:
http://www.zgjhjy.com/Test/PrimaryTest/Index.aspx
就是类似以上的在线测试系统,需要有一个后台的,语言是asp的,数据库是access的,还需要能在后台对信息进行添删改查的。谢谢各位了。。。
程序真的很多,不知 ......
Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web.UI.Design
Imports System.Web.UI.WebControls
Namespace CBDAspNet.WebControls.HTML
''' <summary>
'' ......
最近在做个网上商城,购物车模块,没有做过,麻烦各位帮忙说下大致说下思路,能发一份源码更好。小弟先谢过各位了;
QQ:413763818;
eamil:swebook@126.com
网上一大堆!
www.51aspx.com
去下 ......
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>这个是汉字</msg>
<serialno>123</serialno>
</root>
如何用ASP读取 status值 ......
万网的服务器支持伪静态的,直接用rewrite在web.config文件写规则,也不用安装组件就可以实现伪静态,但是在时代互联服务器就用不了了,咨询它的客服,他说他们服务器(基本型C)不支持伪静态的.请问一下各位我该用什么方法 ......