473,396 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

separate list in pages x

Hello,

I am developping a web-based file browser.
Everything so far so good right now.

To make the userinterface more conveniant, I want to split my file list in
pages.
with
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFSO.GetFolder(CurrentPATH)
Set oFolderContents = oFolder.Files
For Each oFileItem in oFolder.Files
(...)
Next
I get a list of all my files in oFolderContents.
Is there a easy way to

-split the whole list up in pages of i.e. 20 files
-show general info (i.e. xxx files in folder, listing 20 files on page y/z)
-let the user have the possibility to call the page with index i, where i
stands for the i-th file on the list
any good links out there?

tia

bartp

--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee

Jul 19 '05 #1
2 1705
I ran into the same problem with recordset displaying only
x amount of records. I was surprised to see so little on
this, and so many times I've seen it in websites. a few of
the responses suggested putting the data into temp table
and then using that to your advantage. I created some code
that used the recordset.move method (i.e. rs5.Move(page))
to accomplish this. I'm not sure how to do this cleanly
with files. The temp table suggestion might be the only
way. Our maybe an array and pass it to the same asp page.

I can show you want I did for recordset data. It's simple
and works. I use SQL Server 2K. Just e-mail me.

Christopher

-----Original Message-----
Hello,

I am developping a web-based file browser.
Everything so far so good right now.

To make the userinterface more conveniant, I want to split my file list inpages.
with
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFSO.GetFolder(CurrentPATH)
Set oFolderContents = oFolder.Files
For Each oFileItem in oFolder.Files
(...)
Next
I get a list of all my files in oFolderContents.
Is there a easy way to

-split the whole list up in pages of i.e. 20 files
-show general info (i.e. xxx files in folder, listing 20 files on page y/z)-let the user have the possibility to call the page with index i, where istands for the i-th file on the list
any good links out there?

tia

bartp

--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee

.

Jul 19 '05 #2
I was also suprised on the lack of response on this issue.
Anyway,
the way I am doing it right now is building a 2dim array a_files(i,j) where
i stands for the file attributes (name, path, date, size, ...) and j is the
number of the file in the array

then -depending on page size, i.e. each page contains 5x3 files = 15 files -
I calculate the page number of the file.
browsing with next and previous page can be done
thanx for response

bart

ps
Please send me your code. Probably I can learn of your design.

--

==========================================
Hyper A.R.T.
bart plessers
Paul Van Ostaijenlaan 4
3001 Heverlee
BELGIUM
tel: +32 (16) 23.40.85
fax: +32 (16) 23.41.06
==========================================

"chris lynn" <ch********@manageware.net> wrote in message
news:03****************************@phx.gbl...
I ran into the same problem with recordset displaying only
x amount of records. I was surprised to see so little on
this, and so many times I've seen it in websites. a few of
the responses suggested putting the data into temp table
and then using that to your advantage. I created some code
that used the recordset.move method (i.e. rs5.Move(page))
to accomplish this. I'm not sure how to do this cleanly
with files. The temp table suggestion might be the only
way. Our maybe an array and pass it to the same asp page.

I can show you want I did for recordset data. It's simple
and works. I use SQL Server 2K. Just e-mail me.

Christopher

-----Original Message-----
Hello,

I am developping a web-based file browser.
Everything so far so good right now.

To make the userinterface more conveniant, I want to

split my file list in
pages.
with
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFSO.GetFolder(CurrentPATH)
Set oFolderContents = oFolder.Files
For Each oFileItem in oFolder.Files
(...)
Next
I get a list of all my files in oFolderContents.
Is there a easy way to

-split the whole list up in pages of i.e. 20 files
-show general info (i.e. xxx files in folder, listing 20

files on page y/z)
-let the user have the possibility to call the page with

index i, where i
stands for the i-th file on the list
any good links out there?

tia

bartp

--
HyperART
Paul Van Ostaijenlaan 4
3001 Heverlee

.

Jul 19 '05 #3

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

Similar topics

1
by: Paul | last post by:
Title: What are the Consequences of Aspx page separate from app DLL Hi JL; I am working on a big asp.net application. When we migrate the dll (or dlls) to the production server, all users who are...
2
by: L Mehl | last post by:
Different users of the app will want or not want to see report footer ( appears as a separate page). I can make the section invisible with a DLookup of a Y or N value from a 'parameters' table ...
16
by: Shwetabh | last post by:
Hi, This is a question asked to me in an interview. I haven't been able to figure out an answer for it. Please try to see what can be done about the following problem. /* I have been given two...
0
by: Richard | last post by:
Hello, I have a C# asp.net project with several different web pages in it. Some of the web pages are also used in my other web projects so I'd like to place them in a separate DLL. I have...
2
by: Shahid Siddiqui | last post by:
I want to know that whether the asp.net pages are served through separate threads or separate processes?
5
by: Tom Leylan | last post by:
I can't seem to find the setting on VS 2003 but I had it working fine in VS 2002. I like to have the help as a separate window. I don't mean just "undocked" or "floating" but rather the browser...
2
by: Jack Li | last post by:
Hi, If I declare multiple namspaces, each in a separate file, how do I specify their path with the "using" directives? Say I have 2 namespaces and 1 main function, all in separate files such as...
3
by: LurfysMa | last post by:
I would like to hear opinions on the tradeoffs of putting the tables, forms, and queries for several related datasets in separate databases vs one combined database. I am working on an...
3
by: Blasting Cap | last post by:
I am working on a web app that I want to be able to use a separate config file on, in addition to the web.config file that's already working in the application. If I put the following in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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,...

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.