如何用asp把数据库里的列表调出来显示在html页面

xiaochong_58 2010-06-30 08:35:30
如何用asp把数据库里的列表调出来显示在html页面,因为我不想网站的前台是asp的
页面,我要全站都是html的。
http;//www.daohei.com“黑客网站大全” 我这个站我是用asp生成html页面的,但是
麻烦每天要点一下,才会自动生成。
我想要的效果是如题一样,把数据库里的列表调出来显示在“html页面”上~!


----------------------------------------------------------------------------------
希望路过大哥大姐帮帮忙看有没有办法~!
...全文
169 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiangsiye 2010-07-01
  • 打赏
  • 举报
回复
嵌套JS
Dogfish 2010-07-01
  • 打赏
  • 举报
回复
jquery
暗淡亮点 2010-07-01
  • 打赏
  • 举报
回复
你可以写一个application来检测时间,如果时间超过几分钟就自动生成静态页面就行了。

<%
'Content=GetHttpPage("http://www.dimld.com/index.asp")
'Call WriteFile("index.html",Content)
'response.Write("document.write(""完成创建"");")
dim ddiff
if application("cdate")="" then
application.Lock()
application("cdate")=now()
application.UnLock()
Content=GetHttpPage("http://www.dimld.com/index.asp")
Call WriteFile("index.html",Content)
'response.Write("document.write(""完成创建"");")
else
ddiff=minute(now)-minute(application("cdate"))
response.Write ddiff
if ddiff>1 then
application.Lock()
application("cdate")=now()
application.UnLock()
'更新创建时间,生成首页
Dim Content,HtmlFile,URL
Content=GetHttpPage("http://www.dimld.com/index.asp")
Call WriteFile("index.html",Content)
'response.Write("document.write(""完成创建"");")
end if
end if
yangtututu 2010-06-30
  • 打赏
  • 举报
回复
推荐使用ajax
mky81 2010-06-30
  • 打赏
  • 举报
回复
"我这个站我是用asp生成html页面的"已经是最好的方式了,如果你不介意SEO的话,才会考虑用ajax

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧