divide long web page
am 30.06.2007 08:36:38 von LaiLakY
Hi all
I want to divide long HTML page (paging) into smaller pages.
I know how to do it if I use recordset but in my project, I dont need
to read from a Database, I'm reading a file system wich is a folder
and list all files insid it
Any idea Plaese
THANKS
Re: divide long web page
am 30.06.2007 08:45:26 von exjxw.hannivoort
LaiLakY wrote on 30 jun 2007 in microsoft.public.inetserver.asp.general:
> Hi all
> I want to divide long HTML page (paging) into smaller pages.
> I know how to do it if I use recordset but in my project, I dont need
> to read from a Database,
try:
......
<%
if request.querystring("part")=1 then
%>
...............
<%
end if
if request.querystring("part")=2 then
%>
...............
<%
end if
if request.querystring("part")=3 then
%>
...............
<%
else ' part 4 is default
%>
...............
<%
end if
%>
> I'm reading a file system wich is a folder
> and list all files insid it
Don't we all?
Is this relevant to your Q?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: divide long web page
am 30.06.2007 10:12:00 von exjxw.hannivoort
LaiLakY wrote on 30 jun 2007 in microsoft.public.inetserver.asp.general:
>> I want to divide long HTML page (paging) into smaller pages.
>> I know how to do it if I use recordset but in my project, I dont need
>> to read from a Database, I'm reading a file system wich is a folder
>> and list all files insid it
[..]
>>
> Thanks Evertjan
> Your Idea is great but I have loop and I want after Iisting each 'say
> 20 files' then the next will be in new page and so on
So you want a [clickable] file listing using the filesystemobject
and know how to get the list of files in an array?
then do:
<%
' arr is filled by filesystemobject
' s is start position in arr
for i=s to s+20
%>
<%
next
%>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)