Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends

I want to generate a paging functionality for Blog Writing as an Admin of site such that 4 blogs are posted on the first page and then subsequently they are posted on other pages.
My site is in Asp.net. How can we achieve this without using database but only files

If any one can help?Thanks in advance.

Akhilesh Pathak
Posted
Updated 13-Feb-13 19:53pm
v2

1 solution

Trying to do this without using a database will be very difficult, I think.

The only way I can think of would be to name each file with a numeric suffix (0001, 0002 etc.)

You would then have to load four files at a time (1-4, 5-8 and so on) and concatenate them to output the html.

You would need to scan the directory holding the files to find the highest numbered file to determine what goes on the first page.

Use a database - it's much easier!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900