Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 3rd, 2006, 02:59 AM
Registered User
 
Join Date: Oct 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create asp file on the fly

I'm trying to use a FSO and textstream object to create an asp file on the fly.

I'm writing a journal/blogging system which creates permalinks for each entry.

This takes the form of a folder based on the Journal Entry Title, with an index.asp file to display the journal itself.

Creating the folder is easy, but writing the index file is a bit more tricky.

For some reason the "writeline" method will accept the string:
        "<%option explicit"

but will not accept the closing "%>".

I have narrowed it down to the "%" being the problem. Tried looking in a variety of sources for a solution but can't find any.


If life hands you lemons.....reach for the tequila and salt
 
Old October 31st, 2006, 06:43 AM
Friend of Wrox
 
Join Date: Oct 2006
Location: Northampton, Northants, United Kingdom.
Posts: 114
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You could try Chr(37) instead of the %.

Regards,

Sean Anderson




Similar Threads
Thread Thread Starter Forum Replies Last Post
Create word file in asp.net,c# mohini ASP.NET 2.0 Professional 11 March 1st, 2012 06:38 AM
Can I create my own File Field control in ASP.Net vbmazza ASP.NET 1.0 and 1.1 Professional 1 February 22nd, 2006 11:45 AM
parsing a changing text file on the fly Kannkor VB How-To 0 November 14th, 2005 01:47 AM
More Qstn on posting"Create Control on the fly" lxu Access 0 April 14th, 2004 09:10 AM
Using ASP to create a big file hema Classic ASP Databases 2 July 8th, 2003 02:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.