My website was developed for me some years ago and is currently being rewritten by another developer.
One of the features of the website is that I can alter the layout of the pages using 'switches' in my Content Management System. These 'switches' typically allow me to swtich images on/off, alter their size and select whether text is shown to left, right, above or below the images.
My current developer has advised me that:
'there is no HTML document at design time, the HTML in it's complete form only gets generated at runtime. If you look at CMmod_main.ascx.vb you'll see that various fragments of HTML are being added to the page at various points throughout the server side code (inside if statements etc).'
He goes on to say that:
'it's extremely difficult to maintain, extend or debug in the future.'
So my question is what is the most efficient way to generate, based upon the 'switches' already contained within an sql database, webpages at runtime?
I have done a great deal of research on the internet and cannot believe that my requirement is unique. But I have been able to find little relevant information. The most promising solution, so far, seems to be an article ( which deals with email templates.
I would be very grateful for some advice please.
Chris
One of the features of the website is that I can alter the layout of the pages using 'switches' in my Content Management System. These 'switches' typically allow me to swtich images on/off, alter their size and select whether text is shown to left, right, above or below the images.
My current developer has advised me that:
'there is no HTML document at design time, the HTML in it's complete form only gets generated at runtime. If you look at CMmod_main.ascx.vb you'll see that various fragments of HTML are being added to the page at various points throughout the server side code (inside if statements etc).'
He goes on to say that:
'it's extremely difficult to maintain, extend or debug in the future.'
So my question is what is the most efficient way to generate, based upon the 'switches' already contained within an sql database, webpages at runtime?
I have done a great deal of research on the internet and cannot believe that my requirement is unique. But I have been able to find little relevant information. The most promising solution, so far, seems to be an article ( which deals with email templates.
I would be very grateful for some advice please.
Chris