| Author |
Topic Search Topic Options
|
san1965
Newbie
Joined: 04 September 2009
Status: Offline
Points: 17
|
Post Options
Thanks(0)
Quote Reply
Topic: Post Method To Call / Chain To ASP Is Failing 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:
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...
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
san1965
Newbie
Joined: 04 September 2009
Status: Offline
Points: 17
|
Post Options
Thanks(0)
Quote Reply
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...
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
san1965
Newbie
Joined: 04 September 2009
Status: Offline
Points: 17
|
Post Options
Thanks(0)
Quote Reply
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,
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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)
|
|
|
 |
san1965
Newbie
Joined: 04 September 2009
Status: Offline
Points: 17
|
Post Options
Thanks(0)
Quote Reply
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...
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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 What are Active Server Pages (ASP)? it explains what ASP is and how it works.
|
|
|
 |