Discuss Loading .txt in ASP in the ASP Programming forum on Dev Shed. Loading .txt in ASP ASP Programming forum discussing Active Server Pages coding techniques and problem solving methods. Use VBScript or Jscript to make dynamic web applications.
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.
Posts: 21
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.
Posts: 3
Time spent in forums: < 1 sec
Reputation Power: 0
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?
Posts: 16
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.