国产探花免费观看_亚洲丰满少妇自慰呻吟_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ā)表
主站蜘蛛池模板: 宜阳县| 郁南县| 塔河县| 蒙自县| 垦利县| 游戏| 察隅县| 正镶白旗| 荃湾区| 仙居县| 偏关县| 南昌市| 中阳县| 新绛县| 家居| 南皮县| 磐石市| 邓州市| 广宗县| 湛江市| 高碑店市| 香港| 长海县| 裕民县| 昔阳县| 乳源| 呼玛县| 旌德县| 海盐县| 鹤岗市| 佳木斯市| 时尚| 修武县| 常熟市| 紫云| 云和县| 南澳县| 三原县| 安平县| 澜沧| 五指山市|