Creating Text File - how to write %> ??

R

Rob Meade

Hi all,

I'm trying to create an .asp file from an ASP...

A small example could be like this...

<%
strConfigData = "<%"
strConfigData = strConfigData & " Response.Write ""Hi there"""
strConfigData = strConfigData & "%>"
%>

Now - the first 2 lines appear to be ok - however the 3rd line, where we
have the %> my editor looks to be closing the ASP tags for the code
above....

Has anyone else run into this problem? It seems familiar to me, I think I
came across this once before - and I *think* I resolved it by doing this for
the last line :

strConfigData = strConfigData & "% >"

(ie, placing a space between them - but thats not a good enough answer!
o) )

Thanks for any help,

Regards

Rob
 
R

Rob Meade

...
Try using the ascii codes for the % sign.

Hi Dan,

Thanks for the reply, yep - thats what I worked out in the end - lol - so
simple..!

chr(37)

Thanks

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top