Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Run My ASP Scripts 1

Status
Not open for further replies.

smash81

Programmer
Mar 12, 2001
88
KE
I have put this question up earlier but have not succeeded in getting things working.
I have started learning ASP from books and as such encounter many problems.My problem is that I am using windows 98 and PWS to run my ASP scripts.I have even tried using WindowsNt with IIS server.I have correctly followed all the procedure to run the script that is creating a virtual directory,saving my file in the directory and executing it as follows
Normal html runs from the server when executed in the same manner. However,my script does not give any output to me or in some case when I do the same things on some other machine i get a screen saying that i have asked to download a file.I have tried writing a simple scrpt like the one below just to test the working of ASP and it doesn't work.Please read the following.

<%@ Language=VBScript %>
<html>
<head>
<title>Example 1</title>
</head>
<body>
<%
FirstVar = &quot;Hello world!&quot;
%>
<%=FirstVar%>
</body>
</html>
I have to move into hardcore programming but i can not get past the basic and therefore i am stuck.Kindly assist me as i need help in order to move any further.

I would really appreciate if you could be of any kind of help.
 
Put the code below into a default.asp file and put it in the directory on your machine. Open the Personal Web Manager, make sure that Default Documents is enabled and make the default document default.asp. Then just run:


If that doesn't work then check the permissions on your root directory through the personal web manager. Make sure that you have read and scripts enabled.

If that still doesn't work, maybe it's your version of PWS. Try installing the PWS from the NT4 Option Pack. This will work on W98 and definitely supports ASP.

<% Language=VBScript %>
<HTML>
<BODY>
This page was last refreshed on <%=Now()%>.
</BODY>
</HTML>

I hope that this will be of some help. Mise Le Meas,

Mighty :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top