473,507 Members | 5,060 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

divide long web page

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

Jun 30 '07 #1
4 2741
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:

<html>
<head>
......
</head>
<body>
<%
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
%>
</body>
</html>
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)
Jun 30 '07 #2

Evertjan.:try:
>
<html>
<head>
.....
</head>
<body>
<%
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
%>
</body>
</html>
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
Don't we all?
Is this relevant to your Q?
Thanks, for this i'm doing well.

Jun 30 '07 #3
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
%>
<a href='<%=arr(i)%>'><%=arr(i)%></a><br>
<%
next
%>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jun 30 '07 #4
THANK YOU SO MUCH
Evertjan

I used IF statment and it's work very nice

THANKS AGAIN

Kind Regards
LaiLakY

Jun 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12483
by: Nobody | last post by:
I have some code that I am trying to optimize for speed... trying to squeeze every last CPU cycle out... I remembered an old trick where dividing & multiplying can be sped up by using bitshifts...
12
1977
by: Paul T. RONG | last post by:
Is it possible to divide a tall subform with 80 records to two subforms each with 40 records? Dear All, What I have: Tables: tblProduct, tblOrder, tblOrderDetail
8
2643
by: Kevin | last post by:
Dim X as int32 Dim Y as int64 X = Y / 1024 gives me the error: "Operator is not valid for type 'UInt64' and type 'Integer'." I'm new to VB.NET and this is one of the reasons why I've...
2
1565
by: marss | last post by:
I have a long page that contains few separate information blocks. When I print the page by means of window.print(), the content is automatically divided by pages. I look through and find I can...
6
72445
by: Johs | last post by:
I have: int a = 1; int b = 2; double c = a/b; Is it somehow possible to divide these two integers and get the result as a double 0.5? Or do they both have to be declared as doubles?
40
3585
by: Spiros Bousbouras | last post by:
Do you have an example of an implementation where sizeof(short int) does not divide sizeof(int) or sizeof(int) does not divide sizeof(long int) or sizeof(long int) does not divide sizeof(long long...
14
5142
by: Default User | last post by:
Hi, If I have three 64 bit integers and I want to do this operation on them: x*y/z Lets say that what we are multiplying by (y) is offset by what we are dividing by (z) so that the final...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
411
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.