Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP 3.0 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
  #1 (permalink)  
Old November 19th, 2003, 04:05 PM
raa raa is offline
Registered User
Join Date: Nov 2003
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default asp & text files as data store?

I'm working on a site that doesn't have any database for hosting, but they want to have a simple content management system where they can sign on & post links with a brief statement to go with it. I'm wondering if this is possible with text files? I'm starting to make my way through the book, but so far can't find any info on text files, which I believe are also called flat files or comma delimited files.

Thanks for any suggestions or pointers to resources.


  #2 (permalink)  
Old November 20th, 2003, 06:17 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Well, yes, it is possible, but IMO it's going to be pretty difficult.

Here's what you could do:

1. Use a FileSystemObject (FSO) to read and write to files. Using the FSO requires you have to have permissions for the IUSR_MachineName account to it is allowed to access the files.

2. Allow your users to type text in a text area, which you can then save in a new or existing text file using the FSO.

3. This new text file can either be a complete HTML page (with <html> tags, and so on), or just the content part.

4. If it's the content part, you can use the INCLUDE statement to include the content page in other, templated pages.

IMO however, a database is the preferred way to go. This makes it much easier to store data and reuse it on pages on your site.

Another great alternative is to use Macromedia Dreamweaver in combination with Macromedia Contribute. This allows you to create a templated site in Dreamweaver. End users are then just allowed to edit the content regions of the page. They don't have to have knowledge about HTML as they can use a Design View to create content pages. It even comes with integration of FTP etc, so it's pretty easy to save and automatically update pages on the remote server.

Hope this helps, and if you need more ideas, feel free to post here.



Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text file importing & data processing jarpola Excel VBA 0 January 16th, 2007 10:27 AM
Write data from access database to text files hayley Classic ASP Basics 1 February 1st, 2005 08:54 AM
Store and display data using asp erin VBScript 5 November 19th, 2003 07:36 PM
Store and display data using asp erin Javascript How-To 1 November 19th, 2003 01:14 PM
Store ASP.NET files in other than C:\Inetpub RNedel ASP.NET 1.0 and 1.1 Basics 2 September 23rd, 2003 05:21 AM

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