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

Re: Creating Text File - how to write %> ?? by Dan

Dan
Sun Nov 02 12:30:23 CST 2003

Try using the ascii codes for the % sign.

On Sun, 02 Nov 2003 18:17:57 GMT, "Rob Meade"
<robb.meade@NO-SPAM.kingswoodweb.net> wrote:

>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
>


Re: Creating Text File - how to write %> ?? by Aaron

Aaron
Sun Nov 02 12:36:01 CST 2003

Response.Write "%" & ">"

http://www.aspfaq.com/2100



"Rob Meade" <robb.meade@NO-SPAM.kingswoodweb.net> wrote in message
news:pTbpb.4067$By.28762260@news-text.cableinet.net...
> 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
>
>



Re: Creating Text File - how to write %> ?? by Rob

Rob
Sun Nov 02 12:45:31 CST 2003

"Dan Brussee" wrote ...

> 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



Re: Creating Text File - how to write %> ?? by Rob

Rob
Sun Nov 02 12:46:06 CST 2003

"Aaron Bertrand [MVP]" wrote ...

> Response.Write "%" & ">"
>
> http://www.aspfaq.com/2100

Hi Aaron,

OMG! Thats even easier! LOL - why is it always the REALLY simple things
that are soooooo perplexing!

Thanks - think I'll use that :o)

Regards

Rob