Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Creating Text File - how to write %> ??

Reply
Thread Tools

Creating Text File - how to write %> ??

 
 
Rob Meade
Guest
Posts: n/a
 
      11-02-2003
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


 
Reply With Quote
 
 
 
 
Dan Brussee
Guest
Posts: n/a
 
      11-02-2003
Try using the ascii codes for the % sign.

On Sun, 02 Nov 2003 18:17:57 GMT, "Rob Meade"
<> 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
>


 
Reply With Quote
 
 
 
 
Aaron Bertrand [MVP]
Guest
Posts: n/a
 
      11-02-2003
Response.Write "%" & ">"

http://www.aspfaq.com/2100



"Rob Meade" <> wrote in message
newsTbpb.4067$...
> 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
>
>



 
Reply With Quote
 
Rob Meade
Guest
Posts: n/a
 
      11-02-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


 
Reply With Quote
 
Rob Meade
Guest
Posts: n/a
 
      11-02-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 )

Regards

Rob


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Creating html file from news feed or text file Ellie ASP General 1 08-02-2008 07:57 PM
When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write buffer? DR ASP .Net 2 07-29-2008 09:50 AM
When using System.IO.FileStream, I write 8 bytes, then seek to the start of the file, does the 8 bytes get flushed on seek and the buffer become a readbuffer at that point instead of being a write buffer? DR ASP .Net Building Controls 0 07-29-2008 01:37 AM
Error on creating a text file to write lines JenHu ASP .Net 1 01-06-2005 09:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57