Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-17-2006, 08:15 PM   PM User | #1
anessa05
New Coder

 
Join Date: Apr 2005
Posts: 53
Thanks: 2
Thanked 0 Times in 0 Posts
anessa05 is an unknown quantity at this point
Best way to serve up numerous articles?

Hello all,
I'm redesigning an asp site for an online magazine and am wondering what the best way to serve up the numerous articles would be. Currently; there are individual pages for each article. Each page uses includes for the nav, footer, and other elements used throughout the site. Is there a better/easier way?
Thanks in advance,
Anessa
anessa05 is offline   Reply With Quote
Old 03-20-2006, 05:31 PM   PM User | #2
degsy
Senior Coder

 
Join Date: Nov 2002
Location: North-East, UK
Posts: 1,265
Thanks: 0
Thanked 0 Times in 0 Posts
degsy is on a distinguished road
Have one page called articles.
Include your article content via a querystring.

e.g. articles.asp?article_id=23

Have database code in your file to output the article data from the database according to the querystring.

Code:
article_id = Request.QueryString("article_id")
' do some validation here. Trim, IsNumeric, InStr(" "), Replace '  '' etc.
sql = "SELECT * FROM articles WHERE article_id = " & article_id
degsy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:39 PM.


Advertisement
Log in to turn off these ads.