N
Nathan Sokalski
I have a segment of HTML code that I want to put in a server-side include.
All but one line of this code will be constant in all file it is included
in. However, there are many places in the HTML that include double quotes.
From what I can conclude, this leaves me with the following options:
1. Make several files to include, 1 for the constant HTML before the
non-constant HTML, 1 for the line of code that is not constant, and 1 for
the constant HTML after the non-constant HTML.
2. Convert the constant html into strings that are created using Chr()
function for all the double quotes and written using Response.Write().
Option 1 requires less effort, but would require more files to keep track of
and would require me to pull 3 files in rather than just 1. Option 2 allows
me to do everything with one file, but would be harder to edit because the
code will no longer look like HTML. Any suggestions? Thanks.
All but one line of this code will be constant in all file it is included
in. However, there are many places in the HTML that include double quotes.
From what I can conclude, this leaves me with the following options:
1. Make several files to include, 1 for the constant HTML before the
non-constant HTML, 1 for the line of code that is not constant, and 1 for
the constant HTML after the non-constant HTML.
2. Convert the constant html into strings that are created using Chr()
function for all the double quotes and written using Response.Write().
Option 1 requires less effort, but would require more files to keep track of
and would require me to pull 3 files in rather than just 1. Option 2 allows
me to do everything with one file, but would be harder to edit because the
code will no longer look like HTML. Any suggestions? Thanks.