ASP批量生成靜態(tài)頁面的寫法(批量生成技巧iframe)
更新時間:2011年01月22日 23:34:07 作者:
自己快忘的ASP批量生成寫法,需要自己寫asp生成靜態(tài)頁面的朋友可以參考下。
復(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%">開始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)文章
Active Server Pages 錯誤 ''ASP 0201'' 修復(fù)方法
網(wǎng)上很多其他的解決方法, 但是我試了幾個小時, 都沒有解決問題, 最后是通過這個方法解決的.2010-07-07
實用301轉(zhuǎn)向到另一域名相應(yīng)頁面的asp代碼
據(jù)說,多域名同網(wǎng)站會被認為內(nèi)容重復(fù),不利于搜索引擎中的排名。比較好的做法是,指定一個主域名,其它域名都轉(zhuǎn)向到此域名。2008-09-09
關(guān)于WPF?WriteableBitmap類直接操作像素點的問題
WPF是微軟新一代圖形系統(tǒng),運行在.NET Framework 3.0及以上版本下,為用戶界面、2D/3D 圖形、文檔和媒體提供了統(tǒng)一的描述和操作方法,本文重點給大家介紹WPF?WriteableBitmap類直接操作像素點的問題,感興趣的朋友一起看看吧2022-01-01
從一個網(wǎng)站扒下的asp生成靜態(tài)頁面的代碼 腳本之家特供版
雖然腳本之家以前發(fā)布過相關(guān)的代碼,但一些特別的網(wǎng)站不是很完美,最近幫客戶修改系統(tǒng)發(fā)現(xiàn)了這段代碼,發(fā)現(xiàn)還不錯,特提取出來,方便大家使用。2011-07-07
ASP動態(tài)網(wǎng)頁制作技術(shù)經(jīng)驗分享
本文介紹的是ASP動態(tài)網(wǎng)頁制作技術(shù)的一些經(jīng)驗心得,主要從四個大的方面,給大家介紹的,需要的朋友可以參考下2015-10-10

