Print Page | Close Window

Post Method To Call / Chain To ASP Is Failing

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=27878
Printed Date: 28 March 2026 at 5:58pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Post Method To Call / Chain To ASP Is Failing
Posted By: san1965
Subject: Post Method To Call / Chain To ASP Is Failing
Date Posted: 26 September 2009 at 3:17pm
Hi all,
 
I am working on the tutorial "Adding Data To An Access Database" which is available here:
 
http://www.webwiz.net/kb/asp_tutorials/add_to_database.asp" rel="nofollow - http://www.webwiz.net/kb/asp_tutorials/add_to_database.asp
 
While the HTML portion is working perfectly as described in this page, when I click on SUBMIT, the content of the asp file is displayed on the screen, and no action is apparently taken. The table too is not updated.
 
Request your guidance on this problem. I am sure I am following the tutorial instruction-by-instruction.
 
My OS is XPSP3 and I have created the mdb file using MsAccess 2007.
 
Thanks in advance...



Replies:
Posted By: WebWiz-Bruce
Date Posted: 28 September 2009 at 9:51am
If the ASP code is displayed in your browser it means that either you are not running the web pages through a web server or ASP is not enabled on the web server.

To run ASP pages you need to have an ASP enabled web server so that the web server can process the code before sending it to the web browser as HTML.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: san1965
Date Posted: 28 September 2009 at 4:41pm
Hello WebWiz-Bruce,

Thank you for your guidance, much appreciated.

Before reaching the ASP tutorial of Adding records to an existing database, I had worked on the earlier two tutorials which had the ASP code embedded in the .asp files. They had worked. Then why should not this?

Thank you once again...


Posted By: WebWiz-Bruce
Date Posted: 29 September 2009 at 9:03am
Not sure what you mean by ASP embedded in the file as all ASP code should be in ASP files, which is then run on the server before being sent to the web browser.




-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: san1965
Date Posted: 29 September 2009 at 9:09am
Hello WebWiz-Bruce,

Thank you for your message; appreciated.

What I mean is that in the earlier tutorials, I had created .asp text files using the code that was described. These .asp files had run perfectly well. The difference between the earlier tutorials and this particular tutorial of adding a new record to the database, is that there is a separate html file where the data is accepted, which then chains / runs an .asp file (using POST method) where the actual database updation is carried out.

When I had run the earlier .asp files, they had run perfectly well. Then this particular program (whose link I have given earlier) should have run well too. Unless, the POST method has to be called differently from what is described in the tutorial?

I am using XPSP3 with IIS 5.1.

Thanks in advance,



Posted By: WebWiz-Bruce
Date Posted: 29 September 2009 at 9:42am
Are you calling the .html file through the web server?

If you just double click on the HTML file and open it in IE then none of the pages including the ASP page will run through the web server and will therefore just show the ASP code as it is not being processed by the web server.

Make sure you call ALL the files through the web server by typing in something like http://localhost/path/file_name.html (or .asp)


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: san1965
Date Posted: 29 September 2009 at 3:21pm
Hello WebWiz-Bruce,

Thank you for your input; much appreciated.

To run the html file (that is in turn calling the .asp file), I type the address of the file in the browser. Something like - http://localhost/xyz.html.

This would lead to the input form coming up. After typing in the data, and clicking on the SUBMIT button, the html file is supposed to call / chain the .asp.

In "calling the .html file through the web server", what exactly is involved? Is the web server thing different from typing the address in the browser?

Thanks in advance...


Posted By: WebWiz-Bruce
Date Posted: 29 September 2009 at 3:23pm
ASP stands for Active Server Pages, with an Active Server ASP simply won't work.

If you have a read through http://www.webwiz.net/kb/asp_tutorials/what_is_asp.asp" rel="nofollow - What are Active Server Pages (ASP)? it explains what ASP is and how it works.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: san1965
Date Posted: 30 September 2009 at 7:23am
Hello WebWiz-Bruce,

Thank you for your guidance; very much appreciated!

I copied all the material to a sub-folder within the the wwwroot folder of inetPub, which virtually brings the program within the IIS web server environment. Now it looks like the chaining to .asp has begun happening. So, running an .asp file in IIS web server means "to bring the .asp file in some area within the wwwroot." Or may be set the folder where the .asp file is located as a "Virtual Directory" (perhaps).

The .asp file crashed with the message - "
Cannot update. Database or object is read-only.". The line at which it crashed is - "rsAddComments.AddNew". How do I change the attribute from "read-only" to "be able to do anything" for this database? I shall be grateful as always for your guidance in this.

Thank you in advance...


Posted By: WebWiz-Bruce
Date Posted: 30 September 2009 at 9:39am
You need to set read, write, and modify permissions on the directory that the Access database is within.

The page below should give you more help on this:-

http://www.webwiz.net/kb/asp_knowledgebase/server_permissions.asp" rel="nofollow - Setting up the Correct Permissions on the IIS Web Server


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net