Solved

How to trouble-shoot  NT4 for ASP setup ?

Posted on 2001-07-27
7
249 Views
Last Modified: 2012-05-04
Hi,

i have a error-free sample ASP codes (attached) which works fine on someone's NT4:
- InetPub\wwwroot\Order.htm
- InetPub\scripts\Response.asp

However, on my NT4, i use Netscape to open Order.htm. When i click "SUBMIT" and Response.asp is supposed to be shown, nothing happens on my screen.

The same things happen when i use IE5.0. Nothing happens on the screen when i click "SUBMIT" in Order.htm. But i know Response.asp is being opened by the browsers.

My IIS(HTML) shows the Directories for Scripting is "InetPub\scripts" and for WWW is "InetPub\wwwroot". And, the login username in IIS(HTML) is Anonymous.

I have also tried login as "Anonymous".  

How could i trouble-shoot my NT4.0 for my ASP setup ? Is there a sample asp scripts in IIS(HTML) ?
 
Thanks.


---------------- Order.htm -------------------------

<HTML>
<HEAD><TITLE>Order Form</Title></Head>
<BODY>
Please give us some information, then click Submit.
<FORM METHOD=POST  Action=response.asp>
First Name: <INPUT NAME=fname SIZE=25><P>
Last Name: <INPUT NAME=lname SIZE=25><P>
Title:
<INPUT NAME=title TYPE=RADIO VALUE=mr>Mr.
<INPUT NAME=title TYPE=RADIO VALUE=ms>Ms.
<HR><INPUT TYPE=SUBMIT><INPUT TYPE=RESET>
</FORM>
</BODY>
</HTML>

---------------- Response.asp ---------------------

<HTML>
<HEAD><TITLE>Response Form </TITLE></Head>
<Body>
<%Title = Request.Form("Title")
LastName = Request.Form("lname")
If LastName = "" Then %>
Invalid Data Entry !
<% Else %>
Thanks for placing an order
<% If Title = "mr" Then %>
Mr. <% = LastName %>.
<% ElseIf Title="ms" Then %>
Ms. <% = LastName %>.
<% Else %>
<% = Request.Form("fname") & " " & LastName %>.
<% End If
End If %>
</BODY>
</HTML>


0
Comment
Question by:collinng
7 Comments
 
LVL 7

Expert Comment

by:John844
ID: 6328245
sounds stupid, but try changing
<HEAD><TITLE>Response Form </TITLE></Head>
<Body>

to
<HEAD><TITLE>Response Form </TITLE></HEAD>
<BODY>

netscape is very picky about everything.
0
 
LVL 7

Expert Comment

by:John844
ID: 6328267
does the browser just show a blank screen?  if so verify that the html is in the source.  If it is then make sure that all of your html tags are closed, meaning for every tag like <HTML> you have a matching closing tag </HTML>.


Or is the problem that the form is not submitted?

if your page shows exactly what your asp contains including the <% ...%> items, then you have a problem with your asp.dll.  To fix that problem you can reinstall IIS.
0
 
LVL 3

Expert Comment

by:MikeRenz
ID: 6328301
seems like your IIS just isn't set up with execute permissions on the directory you are putting your .asp files.  Open up your MMC (microsoft management console) and check the permissions on the different directories of your website.

Also...you MUST access the web page through a virtual path...not through a file path.  So you cannot just open the html file from windows explorer, becuase it'll use a regular path such as "c:\inetpub\wwwroot\order.htm"  Instead you need to use a path such as:

http://localhost/order.htm

and then the webserver will know that you are accessing the file and will process the .asp accordingly.
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 10

Expert Comment

by:KenAdney
ID: 6328302
Or you could just make it simpler, couldn't you?  In lines 10-16 it could read:

<%= Title %> <%= Lastname %>
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 6328376
Try this;

<%
Title = Request("title")
LastName = Request("lname")
...
0
 

Author Comment

by:collinng
ID: 6328815
Qn Owner here...
Just to update after above comments...i tried changing to Title = Request("title"), or using path name not file name.  There is still the same msg (below)

I realized IE5.0 and Netscape4.01 display the same error msg "Http 501 not implemented / not supported".

Just fyi. Any comments ? Thanks in advance.
0
 
LVL 5

Accepted Solution

by:
dgorin earned 100 total points
ID: 6330037
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
UTC (timezone) without using an API 16 50
Need help to rewrite script 3 94
Designing forms 3 17
send email part1 9 23
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question