Writing ASP code to file? 
Author Message
 Writing ASP code to file?

I'm presently trying to use ASP's WriteLine method to write a mixture of
<HTML> and <%ASP_CODE%> to a text file.  It doesn't have a problem at
all writing the <HTML> code, but as soon as it hits the <%ASP_CODE%> it
errors out.

Does anyone know a method for writing <%ASP_CODE%> to a text file using
<%ASP_CODE%>?

Gary
--
Gary C. New "Web Development, SMIP Interactive"
___________________________________________________
Smip Interactive, Inc.          v 703.442.5210 x233
http://www.*-*-*.com/             f 703.442.5205  
___________________________________________________
http://www.*-*-*.com/  
Comics, advice, horoscopes and opinion - all the best in online
entertainment.



Wed, 25 Jul 2001 03:00:00 GMT  
 Writing ASP code to file?
Never mind.  I figured it out.  You have to use <%ASP_CODE%\> instead of
the typical <%ASP_CODE%>.

Thanks anyway.

Gary

Quote:

> I'm presently trying to use ASP's WriteLine method to write a mixture of
> <HTML> and <%ASP_CODE%> to a text file.  It doesn't have a problem at
> all writing the <HTML> code, but as soon as it hits the <%ASP_CODE%> it
> errors out.

> Does anyone know a method for writing <%ASP_CODE%> to a text file using
> <%ASP_CODE%>?

> Gary
> --
> Gary C. New "Web Development, SMIP Interactive"
> ___________________________________________________
> Smip Interactive, Inc.          v 703.442.5210 x233
> http://www.smip.com             f 703.442.5205
> ___________________________________________________
> http://www.creators.com
> Comics, advice, horoscopes and opinion - all the best in online
> entertainment.

--
Gary C. New "Web Development, SMIP Interactive"
___________________________________________________
Smip Interactive, Inc.          v 703.442.5210 x233
http://www.smip.com             f 703.442.5205  
___________________________________________________
http://www.creators.com  
Comics, advice, horoscopes and opinion - all the best in online
entertainment.


Wed, 25 Jul 2001 03:00:00 GMT  
 Writing ASP code to file?
Instead of saying

textfile.writeline "<%"

Do it this way:

textfile.writeline "<" & "%"

--

   aaronb [microsoft mvp]
   swynk.com/friends/bertrand/


Quote:
>I'm presently trying to use ASP's WriteLine method to write a mixture of
><HTML> and <%ASP_CODE%> to a text file.  It doesn't have a problem at
>all writing the <HTML> code, but as soon as it hits the <%ASP_CODE%> it
>errors out.

>Does anyone know a method for writing <%ASP_CODE%> to a text file using
><%ASP_CODE%>?



Wed, 25 Jul 2001 03:00:00 GMT  
 Writing ASP code to file?
Or to make this a little easier, declare a variable or a constant like
this:

BeginASP = "<" & "%"
EndASP = "%" & ">"

Then you can use the variables in your code and it's easy to read.

On Sat, 6 Feb 1999 12:57:53 -0500, "aaronb [ms-mvp]"

Quote:

>Instead of saying

>textfile.writeline "<%"

>Do it this way:

>textfile.writeline "<" & "%"

>--

>   aaronb [microsoft mvp]
>   swynk.com/friends/bertrand/


>>I'm presently trying to use ASP's WriteLine method to write a mixture of
>><HTML> and <%ASP_CODE%> to a text file.  It doesn't have a problem at
>>all writing the <HTML> code, but as soon as it hits the <%ASP_CODE%> it
>>errors out.

>>Does anyone know a method for writing <%ASP_CODE%> to a text file using
>><%ASP_CODE%>?

Richard L. Stone
Healthcare-ID



Fri, 27 Jul 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Writing ASP code to file?

2. Writing ASP code in to file by using FileSystemObject

3. Writing out VBS code with response.write()

4. How do I write code in MS Access 97 to print a postscript-file

5. PS code to write a Special File?

6. writing files/directories using Com objects / with asp

7. REPOST writing files/directories using Com objects / with asp

8. asp response.write in asp.net

9. writing ASP script output into a html file

10. Write to file the pages generated by ASP pages

11. I want to move files with ASP without giving the anonymous user write access

12. Writing a file out to the response object using asp

 

 
Powered by phpBB® Forum Software