View Single Post
Old 10-08-2007, 07:34 AM   #5 (permalink)
Boogle
Contributing Member
 
Join Date: 09-03-07
Location: England
Posts: 424
iTrader: 0 / 0%
Latest Blog:
None

Boogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the roughBoogle is a jewel in the rough
my explanation has eluded people again... i need to learn my own language more!

I'll try to explain more clearly. I have a table that contains all data for a news column. The news column is loaded into the masterpage via an <asp: DataList> control. So the displayed data is fine. It comes up fine and the title of the news is dynamically made a hyperlink to it's corresponding news page, i.e. <a href="<%= eval newsLink %>".

So i've then made a NewsEditor page so that new news stories can be added by simply typing in the title, selecting the date and typing in the content. THis is all inserted into the table then via SQL statement. What i've done though is also included a column in the table which is populated on insert, like so

"news" + '[NewsID]' + ".aspx"

therefore each new news story has a proper link, i.e. news4.aspx. And this is what's the anchor for link to the corresponding news page.

So basically i was wandering if that when the Insert was done and the news link has been created i could create a new content page for my masterpage with the name 'news4.aspx' on the fly? If so i could then have all the work done for me by simply filling the news content into the page from the database and then maintenance is less on the site. The page will look good because of it's master, all that needs to be done is to fill the content holder with the news content.

So in a nutshell, can you create a content page on the fly?

Costin, is that a better explanation?
I have a feelling the answer is with you Costin!

Thanks,

Boog's
__________________
Great new 'June' Javascript Framework

June Forums - Innovative JScripting

Price is what you pay... Value is what you get.
Boogle is offline   Reply With Quote