Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to VBScript runat=server script?
Message
 
To
24/10/2002 14:32:50
Fabian Belo
Independent Developer
Argentina
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00714936
Message ID:
00715117
Views:
12
Fabian:
When I began my IIS adventure I struggled for a week to get a simple COM working - your point is well taking - my initial problems were due to the fact that IIS was not running <s>

Thanks

>Terry:
>You can run any "executable" file in your server (IIS). Taking into account the following:
>- If your file contains HTML and/or JavaScript, save it as HTM or HTML. If includes VBScript MUST BE saved with ASP extension.
>- Your files can be saved in any folder.
>- Configure your IIS to set "Default Directory" pointing to that folder which have your files.
>- Type http://localhost. If you have a file named index or default (asp/html) this file it will execute automatically, if not, a list of that default folder will be displayed so you can click the file to execute it.
>- For a simple "Hello World" just write:
>
>< % ERROR: 
>Response.Write "Hello World"
> % >
>
>Note the symbols
< %
and
% >
marks start and end of VBScript Code.
>You can mix HTML, JavaScript and VBScript in one single page (file), but remember, if you include VBS that means an ASP extension.
>There's a lot more... I think this is enough to get started.
>
>
>>I am trying to get an HTML file to execute a "Hello World" runat=server script. IIS 5.1 is the //localhost server (FAT32).
>>
>>Could someone offer a simple "Hello World" sample that I could try with the runat=server. The sample I am working from may have typos:
>>
<script language="VBScript" runat = "server>"
>>
>>The questions I have not answered:
>>1) Does the IIS need to be NTFS?
>>2) Does the HTM file need to be in a specific folder?
>>3) Have all the components necessary to execute server scripts been installed?
>>
>>Thanks
>>Terry
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform