473,386 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Creating Text File - how to write %> ??

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
Jul 19 '05 #1
4 3080
Try using the ascii codes for the % sign.

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


Jul 19 '05 #2
Response.Write "%" & ">"

http://www.aspfaq.com/2100

"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
news:pT********************@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

Jul 19 '05 #3
"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
Jul 19 '05 #4
"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
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: QS Computing | last post by:
Hi, I'm trying to write a simple forum script and I want to include '>' at the start of lines in quoted text (like on USENET). How do I go about doing this? My post is stored in a MySQL DB text...
2
by: Jürgen Holly | last post by:
Hi! I have the following xml-node: <docu> <p>Sample: <b>bold</b></p> <p>and text in <i>italic</i></p> </docu> I need to create a text-file, so I set the output-mode to text.
2
by: Martin | last post by:
Hallo, can you help me writing a generic xslt transformation (useable with xsql from oracle)? The problem is how to get the escaping characters .... === INPUT-File in.xml <?xml version =...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
15
by: David Thielen | last post by:
Hi; My ASP.NET app (C# calling J# under .net 2.0) creates a png file in a subdirectory to display as part of the created page. However, the bitmap will not display due to a security violation. ...
7
by: andym | last post by:
Dear All, I wish to have an ASP page that displays a predetermined date in the middle of a string. I wish this date to be set in a seperate control panel type page. I am hoping somebody could...
2
by: Astra | last post by:
Hi All Creating an rss.xml file dynamically via ASP/ADO/DB, but find errors in the file. Don't think it's an ASP prob to be honest. Think its more to do with the fact that the ampersands are...
2
by: Richard Lewis Haggard | last post by:
Is it possible to use features from XmlDocument to unescape text back to its original raw text format after it has been escaped to handle non-HTML compliant character strings? I have code that...
2
by: Richard Lewis Haggard | last post by:
Is it possible to use features from XmlDocument to unescape text back to its original raw text format after it has been escaped to handle non-HTML compliant character strings? I have code that...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.