ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 28th, 2004, 04:27 PM
Mave Mave is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 Mave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow Loading .txt in ASP

Hi,

I have a an ASP page on which i wish to load dynamic text by way of a dot text file.

It would be great if something like.-

<txt scr = "MyTextFile.txt">

existed but life aint that simple, or is it? Any pointers would be much appreciated. Thanks in advance, Mave

Reply With Quote
  #2  
Old July 28th, 2004, 05:15 PM
jstrohofer jstrohofer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Cincinnati, OH USA
Posts: 111 jstrohofer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 3 sec
Reputation Power: 9
You'll probably want to use the FileSystemObject (FSO) to read from the text file, and output what is read in. Take a look into that.

Reply With Quote
  #3  
Old July 28th, 2004, 05:45 PM
Webfoot Webfoot is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 21 Webfoot User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 m 9 sec
Reputation Power: 0
Is this what you mean?

You can perform a server side include of your text file with this syntax

<!--#include file="includes/fileName.txt" -->

The file can contain HTML for formatting if you wish.

If you have a choice (you arent using asp to view server error logs or something), rather than using a txt file on the server you should put the info in a db.

Just my .02

Jeff
http://www.webfootss.com

Reply With Quote
  #4  
Old July 28th, 2004, 08:17 PM
mydasx mydasx is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Honolulu
Posts: 143 mydasx User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 sec
Reputation Power: 8
Oh and btw

The last post is correct use the include file, but don't forget to set your permmisions for that file!

Mydasx

Reply With Quote
  #5  
Old July 30th, 2004, 08:04 AM
Mave Mave is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 3 Mave User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Red face

I'll give both mehtods a try.

1. Does the #include function actually display text to the screen automatically or should I put some other tags round it, or tags in the .txt document? And how do I alter the permissions?

2. A large DB field with the text in sounds like a quick simple fix, are there any problems with doing it this way?

Thanks for your help!

Reply With Quote
  #6  
Old July 30th, 2004, 10:16 AM
six six is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 16 six User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 3 sec
Reputation Power: 0
if you don't already know sql, then the simplest thing to do is use the include,
and no you don't need any other tags,
unless you want to format whatever text is in the txt file..
the put the tags right into the txt file.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Loading .txt in ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 4 - Follow our Sitemap