Groups | Blog | Home
all groups > inetserver asp components > march 2004 >

inetserver asp components : Creating an ASP page from and ASP page


daly_jason NO[at]SPAM yahoo.com
3/10/2004 9:19:07 PM
I'm trying to write an asp page line by line, as one would create a
text file, only my file will end in .asp.

One line simply writes a close ASP code tag, or
FILECONTENTS=FILECONTENTS & "%>"
When this line processed, an error occurs saying that the string was
never terminated because the asp page attempting to write this line of
code to a NEW asp page reads that close ASP tag (%>), as an actual
close asp tag for itself, instead of a STRING value.

How do I write this %> symbol to a new asp file, while still
maintaining its purpose to close a group of asp code in the newly
Tom Kaminski [MVP]
3/11/2004 8:55:19 AM
[quoted text, click to view]

It would help if you showed us your code so we can figure out why it's not
working ...

--
Tom Kaminski IIS MVP
http://www.iistoolshed.com/ - tools, scripts, and utilities for running IIS
http://mvp.support.microsoft.com/
http://www.microsoft.com/windowsserver2003/community/centers/iis/


owen
3/12/2004 9:43:39 AM

[quoted text, click to view]


Seperate them out, eg:
FILECONTENTS=FILECONTENTS & "%" & ">"



Robbie
3/19/2004 9:51:47 AM
It's actually very simple. Just use the extended
character set.

FILECONTENTS=FILECONTENTS & chr(37) & chr(62)
This way your asp pagedoesnt get confused with those
symbols "%>"

If you want to write the 'opening' script symbols....

chr(60) & chr(37)

That's all there is to it!

chr(60)= <
chr(62)= >
chr(37)= %

[quoted text, click to view]
AddThis Social Bookmark Button