国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

ASP實例代碼:長文章分頁代碼設(shè)置方法_ASP教程

2024-05-04 11:03:30
字體:
供稿:網(wǎng)友

推薦:插入ASP代碼讓網(wǎng)站數(shù)據(jù)庫成為ASP木馬
很多時候我們可以通過在注冊表單或者用戶信息修改表單中,插入簡短的ASP代碼,使網(wǎng)站ASP數(shù)據(jù)庫變成為一個ASP木馬,然后進(jìn)一步入侵控制服務(wù)器。不過在上傳代碼過程中,許多網(wǎng)頁程序都不允許包

以下為引用的內(nèi)容:

<%
Class aspxsky_page
Private Sub class_initialize
End Sub

Public Function Alert(message,gourl)
message = replace(message,"'","/'")
If gourl="-1" then
Response.Write ("<script language=javascript>alert('" & message & "');history.go(-1)</script>")
Else
Response.Write ("<script language=javascript>alert('" & message & "');location='" & gourl &"'</script>")
End If
Response.End()
End Function

Public Sub showpage(str,page,url)
if not isnumeric(page) then
alert "提示:錯誤的參數(shù)!","-1"
end if
if page="" or page=0 or isnull(page) or isempty(page) then
page=1
else
page=cint(page)
end if
str=split(str,"{nextpage}")
abspage=page
pcount=ubound(str) 1
if page>cint(ubound(str) 1) or page<1 then
alert "提示:錯誤的參數(shù)!","-1"
else
response.write str(page-1)&"<br><br><center> 共分為"&pcount&"頁 "
end if

for p=0 to ubound(str)
response.write "<a href="&url&"p="&p 1&">["&p 1&"]</a> "
next
response.write "當(dāng)前第"&abspage&"/"&pcount&"頁</center>"
End Sub
End Class

'------------------調(diào)用-----------------------
p=request.QueryString("p")
str="第一頁:這里是第一頁的內(nèi)容{nextpage}第二頁:這里是第二頁的內(nèi)容"
url="shownews.asp?id="&id&"&"
set newpage=new aspxsky_page
newpage.showpage str,p,url
%>


分享:國內(nèi)ASP應(yīng)用,不容樂觀
新的ASP概念不是指開發(fā)工具ASP(ActiveX Server Pages),而是指應(yīng)用服務(wù)提供商(Application Service Provider)一種新的IT經(jīng)營模式。通俗的話,即企業(yè)不購買應(yīng)用軟件,而是采用租賃的形式租用軟件

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 镇江市| 霍邱县| 铜山县| 佳木斯市| 台北县| 永康市| 麻阳| 崇义县| 吐鲁番市| 聂荣县| 卓资县| 资兴市| 岢岚县| 金溪县| 资源县| 郁南县| 邓州市| 临城县| 彰化市| 阳东县| 伊吾县| 榆树市| 韶关市| 安岳县| 石景山区| 宁阳县| 施甸县| 静宁县| 泗阳县| 庄河市| 邢台市| 芷江| 大新县| 高邮市| 柳林县| 麻江县| 五寨县| 方正县| 上饶市| 蓬莱市| 楚雄市|