IIS ASP - Dynamic ASP Page?

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > December 2004 > Dynamic ASP Page?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Dynamic ASP Page?
DavidM

2004-12-18, 5:48 pm

Hi all - I've been wondering how folks do this for some time...

I've noticed when I go to various websites to read online articles, when the
link is clicked, I frequently see a file such as NewsArticle-17229.asp.

The ASP file is totally different for each article.

How is this done?

Is there an ASP file created that is unique for each article?

The # on the end appears to change.

Any help would be appreciated.



wayne-o

2004-12-18, 5:48 pm

I guess this is possible. Maybe they have a CMS which rather than
punching all of the content into a DB they create a file on the fly and
only store reference to the filename. I have noticed the same thing,
but I am yet to figure out the benefits, sometimes they are straight
HTML pages.


w

Tim Williams

2004-12-18, 5:48 pm

Custom 404?
The page itself perhaps does not exist at all, and the custom 404 just
creates the required content based on the article id (17229) ?

http://www.4guysfromrolla.com/webtech/123000-1.shtml

Tim.

"DavidM" <spam@spam.net> wrote in message
news:O1J3kBT5EHA.3416@TK2MSFTNGP09.phx.gbl...
> Hi all - I've been wondering how folks do this for some time...
>
> I've noticed when I go to various websites to read online articles,
> when the link is clicked, I frequently see a file such as
> NewsArticle-17229.asp.
>
> The ASP file is totally different for each article.
>
> How is this done?
>
> Is there an ASP file created that is unique for each article?
>
> The # on the end appears to change.
>
> Any help would be appreciated.
>
>
>



DavidM

2004-12-18, 8:46 pm

Does this mean they may have some URL ReWrite or something setup and a mask
to simply run a page based on the article ID?

The previous poster who mentioned CMS possible writing a cache file out
sounds plausible.

I'm not sure of the advantages of having umpteenth ASP pages just to display
a single article.

Seems to me that having one page that dynamically reads/displays the article
based on the passed URL would be ideal.

Opinions?




"Tim Williams" <saxifrax@pacbell*dot*net> wrote in message
news:%23o3jQTU5EHA.3784@TK2MSFTNGP10.phx.gbl...
> Custom 404?
> The page itself perhaps does not exist at all, and the custom 404 just
> creates the required content based on the article id (17229) ?
>
> http://www.4guysfromrolla.com/webtech/123000-1.shtml
>
> Tim.
>
> "DavidM" <spam@spam.net> wrote in message
> news:O1J3kBT5EHA.3416@TK2MSFTNGP09.phx.gbl...
>
>



Tim Williams

2004-12-18, 8:46 pm



"DavidM" <spam@spam.net> wrote in message
news:ONxvv0V5EHA.1524@TK2MSFTNGP09.phx.gbl...
> Does this mean they may have some URL ReWrite or something setup and
> a mask to simply run a page based on the article ID?


That sounds more or less how it works


> The previous poster who mentioned CMS possible writing a cache file
> out sounds plausible.


Also a possible approach, unless you have thousand of pages to
generate and update.

> I'm not sure of the advantages of having umpteenth ASP pages just to
> display a single article.
>
> Seems to me that having one page that dynamically reads/displays the
> article based on the passed URL would be ideal.
>


See this page:
http://www.asp101.com/articles/wayn...mes/default.asp

Plenty more info on Google.

Tim.


Ben Strackany

2004-12-21, 5:55 pm

Custom 404 would be the way to go unless you start to max out on
performance. Then it may be worth it to generate all those files once from a
database or script.

--
Ben Strackany
www.developmentnow.com


"DavidM" <spam@spam.net> wrote in message
news:ONxvv0V5EHA.1524@TK2MSFTNGP09.phx.gbl...
> Does this mean they may have some URL ReWrite or something setup and a

mask
> to simply run a page based on the article ID?
>
> The previous poster who mentioned CMS possible writing a cache file out
> sounds plausible.
>
> I'm not sure of the advantages of having umpteenth ASP pages just to

display
> a single article.
>
> Seems to me that having one page that dynamically reads/displays the

article
> based on the passed URL would be ideal.
>
> Opinions?
>
>
>
>
> "Tim Williams" <saxifrax@pacbell*dot*net> wrote in message
> news:%23o3jQTU5EHA.3784@TK2MSFTNGP10.phx.gbl...
when[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com