473,662 Members | 2,581 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 2746
LaiLakY wrote on 30 jun 2007 in microsoft.publi c.inetserver.as p.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.queryst ring("part")=1 then
%>
...............
<%
end if
if request.queryst ring("part")=2 then
%>
...............
<%
end if
if request.queryst ring("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.queryst ring("part")=1 then
%>
..............
<%
end if
if request.queryst ring("part")=2 then
%>
..............
<%
end if
if request.queryst ring("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.publi c.inetserver.as p.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 filesystemobjec t
and know how to get the list of files in an array?

then do:

<%
' arr is filled by filesystemobjec t
' 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
12518
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 and addition / subtraction instead (doing this saved me about 11% time on my 2.26ghz P4). Really easy with powers of two. I implemented this last night when I was tired, and this morning, I realize it was not exactly right (values were slightly...
12
1998
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
2649
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 resisted so long. I've tried Dimming X as Int64 and integer. What do I have to
2
1573
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 do it if I load blocks in separate frames. But there is a new problem. There are ten or more blocks. When I load the content it is unreadable. - If frameset fits to the screen, then the result looks like many horizontal stripes with scrolling. The...
6
72572
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
3629
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 int) ? Same question for the corresponding unsigned types.
14
5157
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 answer will fit in a 64-bit integer. Let me simplify it by using unsigned chars (8 bits):
0
8432
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4180
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1993
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.