Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Post Method To Call / Chain To ASP Is Failing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Post Method To Call / Chain To ASP Is Failing

 Post Reply Post Reply Page  12>
Author
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.


Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post 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,

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
san1965 View Drop Down
Newbie
Newbie


Joined: 04 September 2009
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote san1965 Quote  Post ReplyReply Direct Link To This Post 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...
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.