html_code_clinic thread: Re: Text Files.
Stephen,
Active Server Pages is a Microsoft technology, that allows you to run
scripts from the server (NTrunning IIS or W2K), rather than the client,
(browser). You can use a Personal Web Server, with ASP turned on, on a
desktop PC to do basic development. The pages have a .asp suffix. i.e.
index.asp. They usually use a mixture of VBScript, asp and html to produce
the required output. Anything that you write in your page code is
interpreted on the server first and then output to the client as html. I
include a very basic script as an example:
Your text file could just be an unformated piece of text, in my example it
just says 'my name is inametaxa'. If you include html tags they would be
interpreted normally by the browser. Don't declare the page header info
though as that is already done in the calling asp page.
hth
ianmetaxa
***sample index.asp***
<% @language="VBScript" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Untitled</TITLE>
</HEAD>
<BODY>
<!-- #include FILE="text.txt" -->
</BODY>
</HTML>
-----Original Message-----
From: Stephen Shilling [mailto:sash1@n...]
Sent: 16 March 2001 15:51
To: HTML Code Clinic
Subject: [html_code_clinic] Re: Text Files.
This is a subject which I am also very interested in. I do not quite
understand your answer, are you saying that this one line of code:
<!-- #include FILE="yourtextfilename.txt" -->
is all you need to display your text file in the HTML code or is there an
ASP programme in the background? I have no experience of ASP which may
explain my question to you.
Regards, Stephen
> If you can use ASP, Active Server Pages, you could use an include file.
> simply use the code:
>
> <!-- #include FILE="yourtextfilename.txt" -->
>
> inserted where you want the text to appear in your page.
>
> These are collectively known as Server Side Includes, SSIs so whichever
> technology you are using, look to SSIs.
>
> luck
>
> In message <983169772.2128482.0@a...>, Randy Brown
> <magic1@r...> writes
> >I have text files on products. I need a short html code to make them
show
> >up in a description. I do not want just a link. Is there a way for them
to
> >show like I have typed them in, yet what is showing is really the text
> >file? Thank you to anyone who can help. PS, honestly I am not educated
in
> >this field, but learning on my own. Thanks, Randy
>
> --
> Ian Richardson