ASP批量生成靜態(tài)頁(yè)面的寫法(批量生成技巧iframe)
更新時(shí)間:2011年01月22日 23:34:07 作者:
自己快忘的ASP批量生成寫法,需要自己寫asp生成靜態(tài)頁(yè)面的朋友可以參考下。
復(fù)制代碼 代碼如下:
<!-- #include file="../conn.asp" -->
<!-- #include file="../cls_main.asp" -->
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>生成百度XML</title>
</head>
<body>
<%
dim sid,eid
sid=abs(request("sid"))
if sid=0 then
sid=0
else
sid=cint(request("sid"))
end if
eid=cint(request("eid"))
if eid=0 then
eid=500
else
eid=cint(request("eid"))
end if
Dim tt,ResNum
Set tt = New Cls_Main
ResNum = CLng(tt.Execute("select max(id) from table")(0))
Set Mesky = Nothing
%>
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0">
<form method="POST" action="?action=html">
<tr>
<td width="9%">開(kāi)始ID:</td>
<td width="35%"><input type="text" name="sid" size="20" value="<%=sid%>"></td>
<td width="8%">結(jié)束ID:</td>
<td width="23%"><input type="text" name="eid" size="20" value="<%=eid%>">(最大ID:<%=ResNum%>)</td>
<td width="23%"><input type="submit" value="提交" name="B1"></td>
</tr>
</form>
<%
if request("action")="html" then
Response.Write " <tr><td colspan=5>" & vbNewLine
Response.Write "<br><br>" & vbNewLine
Response.Write "正在生成 <font color='red'><b>" & eid & ".xml</b></font> 文件…… " & vbNewLine
Response.Write "<br><br>" & vbNewLine
Response.Write " </td></tr><tr><td colspan=5>" & vbNewLine
Response.Flush
If (eid-500) > ResNum Then
Response.Write "恭喜您操作成功!"
Response.Flush
else
creat(sid)
sid=sid+500
eid=eid+500
Response.Write "<meta http-equiv=""refresh"" content=""10;url=?action=html&sid="&sid&"&eid="&eid&""">"
End If
end if
Function creat(id)
Response.Write "<IFRame name=tt frameborder=0 width=100% height=30 scrolling=no src=http://www.xx.com/cls_create.asp?startid="&sid&"&endid="&eid&"></IFrame>"
End Function
%>
</td></tr>
</table>
</body>
</html>
相關(guān)文章
查看ASP詳細(xì)錯(cuò)誤提示信息的圖文設(shè)置方法
有時(shí)候很多朋友訪問(wèn)自己的asp或php等程序頁(yè)面時(shí)出現(xiàn)一些錯(cuò)誤,就是頁(yè)面無(wú)法顯示也沒(méi)有詳細(xì)的錯(cuò)誤信息,就算iis中開(kāi)啟了顯示詳細(xì)的錯(cuò)誤也不能看到,那么就需要客戶端如下的設(shè)置了。2011-01-01Active Server Pages 錯(cuò)誤 ''ASP 0201'' 修復(fù)方法
網(wǎng)上很多其他的解決方法, 但是我試了幾個(gè)小時(shí), 都沒(méi)有解決問(wèn)題, 最后是通過(guò)這個(gè)方法解決的.2010-07-07實(shí)用301轉(zhuǎn)向到另一域名相應(yīng)頁(yè)面的asp代碼
據(jù)說(shuō),多域名同網(wǎng)站會(huì)被認(rèn)為內(nèi)容重復(fù),不利于搜索引擎中的排名。比較好的做法是,指定一個(gè)主域名,其它域名都轉(zhuǎn)向到此域名。2008-09-09關(guān)于WPF?WriteableBitmap類直接操作像素點(diǎn)的問(wèn)題
WPF是微軟新一代圖形系統(tǒng),運(yùn)行在.NET Framework 3.0及以上版本下,為用戶界面、2D/3D 圖形、文檔和媒體提供了統(tǒng)一的描述和操作方法,本文重點(diǎn)給大家介紹WPF?WriteableBitmap類直接操作像素點(diǎn)的問(wèn)題,感興趣的朋友一起看看吧2022-01-01從一個(gè)網(wǎng)站扒下的asp生成靜態(tài)頁(yè)面的代碼 腳本之家特供版
雖然腳本之家以前發(fā)布過(guò)相關(guān)的代碼,但一些特別的網(wǎng)站不是很完美,最近幫客戶修改系統(tǒng)發(fā)現(xiàn)了這段代碼,發(fā)現(xiàn)還不錯(cuò),特提取出來(lái),方便大家使用。2011-07-07ASP動(dòng)態(tài)網(wǎng)頁(yè)制作技術(shù)經(jīng)驗(yàn)分享
本文介紹的是ASP動(dòng)態(tài)網(wǎng)頁(yè)制作技術(shù)的一些經(jīng)驗(yàn)心得,主要從四個(gè)大的方面,給大家介紹的,需要的朋友可以參考下2015-10-10