asp 简单内容翻页 跪求

来源:百度知道 编辑:UC知道 时间:2024/07/04 05:33:54
需要越简单越好 本人新手 请高手帮吗

我百度空间 http://hi.baidu.com/albbliuyibing

你运气好,我最近正好复习asp连接数据库,读取,添加,删除,修改
思路写在百度空间里,就在首页

你要是看不懂就从ASP语法开始学吧
有点基础就应该能看懂

你是想用ASP从数据库里读取内容,然后显示出来,用分页显示,是这个意思吗?

我添加删除修改还没复习呢,才到读取数据库内容

这是fenye.asp具体代码:

以下是引用片段:

<%
Const maxPagesize=1000 '设置分页字数

Function InsertPageBreak(strText)
Dim strPagebreak,s,ss
Dim i,IsCount,c,iCount,strTemp,Temp_String,Temp_Array
strPagebreak="[hiweb_break]"
s=strText
If Len(s)<maxPagesize Then
InsertPageBreak=s
End If
If s<>"" and maxPagesize<>0 and InStr(1,s,strPagebreak)=0 then
IsCount=True
Temp_String=""
For i= 1 To Len(s)
c=Mid(s,i,1)
If c="<" Then
IsCount=False
ElseIf c=">" Then
IsCount=True
Else
If IsCount=True T