Entry
TSE: Language: Computer: Compile: ASP: How to run ASP from TSE?
Jan 12th, 2004 07:26
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 19 February 2002 - 10:15 pm -------------------
TSE: Language: Computer: Compile: ASP: How to run ASP from TSE?
---
Steps: Overview:
1. make sure the webserver Microsoft IIS is installed and also running
on your computer
see e.g.
http://www.faqts.com/knowledge_base/view.phtml/aid/12558
or search www.google.com
for 'ASP and 'Microsoft Internet Information Server'
2. create a batchfile 'comASP.bat', containing this text
(adapt it to your system) and store this batchfile in your TSE
directory
(e.g. save to c:\mytsedirectory\comASP.bat)
Containing the following text:
@REM copy %3 c:\Inetpub\iissamples\sdk\asp
@REM iexplore.exe localhost\iissamples\sdk\asp\%1.%2
@REM @exit
copy %3 c:\inetpub\wwwroot\
c:\progra~1\intern~1\iexplore.exe http://localhost\%1.%2
@pause
3. Adapt the compiler information
(in TSE, after loading any file, press <SHIFT><F9>
then 'D' for debug compiler setup
then <ALT><C> to copy one of the compiler settings present
then change the fields:
'Extension' to: .asp
'Description' to: ASP
'Command' to: c:\mytsedirectory\comASP.bat &name& &ext& &fn& >
&output&
make sure this information is permanently stored in the compiler
information (via <ENTER>, then <ESCAPE>)
4. If you now load a .ASP file, fill in some program code for ASP,
for example type or copy this text in a file 'mytest.asp'
<%@ LANGUAGE = JScript %>
<TITLE> Simple Scripting Tricks </TITLE>
<BR> Hello World from ASP
<BR>
<% for ( i = 1; i < 6; i++ ) {
Response.Write( i + " Hello World <BR>" );
}
i = 100000;
%>
save that text in your TSE directory,
then press <CTRL><F9> or <ESCAPE><M><C> to compile, this will run
that batch file, which starts your browser with your file.
---
---
Internet: see also:
Computer: Wordprocessor: TSE: Language: Computer: Compile: Run:
Overview
http://www.faqts.com/knowledge_base/view.phtml/aid/24311/fid/895
----------------------------------------------------------------------