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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP opens in NOTEPAD 2

Status
Not open for further replies.

Slippenos

MIS
Apr 22, 2005
333
US
In a form I created in html, I have a form action = "drf_sv.asp". It adds entries into an Access table. Rather than executing, it opens up in Notepad. I'm using IIS 5.0 and this site is enabled to read/ write/ run scripts. The server extensions are set to run ASP as well. The application name is set to the above asp file.

It should be noted that this is not the default site and I created a unique http header for this site.

Any ideas? Any help would be greatly appreciated!
 
Look in the address bar of your browser... are the first letters http ???

Or did you open the html file by clicking on it?
 
I access it via a shared drive, something to the tone of: \\shared\intranet\site\form.html.

I created a shortcut that launches the above address.

Thanks for your quick response.
 
If the address doesn't begin with http then the web server is not serving the page... and if it is not serving the page, it will not process the page.

It sounds like you've opened your page off a drive instead of the server and so you ar seeing your .asp page with the default viewer for that file type.
 
Great help, Sheco. What I'm having a hard time understanding is that I've set up this form with its respective DB on my localmachine and it works fine (without the 'http' appearing in the address bar).

Any thoughts?
Thanks for the response.
 
Any of your client side script will still run just fine.

The problem is that the server side script must run through a server.

If your html file comes off the disk instead of via http, then the relative URL in the action property will be relative to the disk file instead of relative to the server.

if you insist on running this off the disk while in development mode then perhaps you can still get the ASP to run off the server by using a fully qualified URL...
ie: <form action='
 
Thank you both for your input. Everything runs just fine now!
 
Excellent.

What was the problem? Not running through the server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top