Forums
This topic is locked
Help please. Can this be done???
Posted 14 Jan 2002 10:59:15
1
has voted
14 Jan 2002 10:59:15 Jason Tandy posted:
Hello all, I wonder if anybody can help me with the following.I am building a site that has hundreds of pages and wondered if I could store the links in a database.
I once created a site in Cold Fusion as follows:
I created the the Main home page, into which I placed 2 include statements, 1 for a tab menu the other for the main content.
I then created a file that listed the locations of all the other pages in the site. What would happen was when I created a link I would type something like
index.cfm?pageno=100.
Cold fusion would then check the file and insert the right menu and main content for page 100.
The customer however requires the site to be in asp.
Can this be done in asp??? and if so how???
Many thanks in advance.
JT
Replies
Replied 15 Jan 2002 15:48:48
15 Jan 2002 15:48:48 Stuart Chase replied:
Yes you can store links.
Not sure exactly how the 100 pages are consisting of.
But if you have say a database that pulls 100 pages worth of info from a database you can do the following code.
www.yourdomain.com/deleterecords.asp?offset=50
this will offset 50 records (or page 3 as I have 25 records a page)
Another way to display links through a database.
If you have lets say a table showing records from a database, you can have a field where you put the url itself, Then in the table field have something like this.
<img src="www.yourdomain.com/images/<%=(rsInventory.Fields.Item("Picture".Value)%>">
In my database this will display the related picture.
Hope this helps.
Not sure exactly how the 100 pages are consisting of.
But if you have say a database that pulls 100 pages worth of info from a database you can do the following code.
www.yourdomain.com/deleterecords.asp?offset=50
this will offset 50 records (or page 3 as I have 25 records a page)
Another way to display links through a database.
If you have lets say a table showing records from a database, you can have a field where you put the url itself, Then in the table field have something like this.
<img src="www.yourdomain.com/images/<%=(rsInventory.Fields.Item("Picture".Value)%>">
In my database this will display the related picture.
Hope this helps.