amhaskar
01-14-2005, 11:11 AM
I have a database in which I store page content (html, links, text, template data, etc.) for webpages in text blobs. What I need to do is pull this information from the database and format special keywords that may or may not be found in the html or template data when outputting to the user.
content => template => output webpage
The content and template are pulled from the db, and I use the Vb Replace function to replace any occurance of <@pageContent@> in the template with the value of the content record. However, if the values are large they don't always get pulled from the db (memory issues?).
body = Replace(templateRS("template"), "<@pageContent@>", contentRS("content"))
Any ideas or suggestions on how to rectify this issue? Or maybe another data structure that I could use?
I am avoiding using physical text files to store the content due to space constraints on the server. Furthermore, I am trying to stay away from a finite amount of NVARCHAR fields because I can't keep an upperbound on the amount of content or size of the template.
Any and all help is appreciated, thanks in advance!
content => template => output webpage
The content and template are pulled from the db, and I use the Vb Replace function to replace any occurance of <@pageContent@> in the template with the value of the content record. However, if the values are large they don't always get pulled from the db (memory issues?).
body = Replace(templateRS("template"), "<@pageContent@>", contentRS("content"))
Any ideas or suggestions on how to rectify this issue? Or maybe another data structure that I could use?
I am avoiding using physical text files to store the content due to space constraints on the server. Furthermore, I am trying to stay away from a finite amount of NVARCHAR fields because I can't keep an upperbound on the amount of content or size of the template.
Any and all help is appreciated, thanks in advance!