Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #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.

Rita

  #2 (permalink)  
Old November 20th, 2003, 06:17 AM
Imar's Avatar
Wrox Author
Points: 72,055, Level: 100
Points: 72,055, Level: 100 Points: 72,055, Level: 100 Points: 72,055, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,086
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

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.


Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:40 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.