473,378 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Problem with redirection in a Form...

Hi,

Envronment: IIS 5 on W2k sp3

Problem: I'm using a Form and when Submitted, will display
a confirmation page. The confirmation page is simply a
Form with an OK button. I want the browser to display
either [1] the first form OR [2] to another page and I
couldn't do either.

Here's what I have problem with:
For [2], I got the error
HTTP 405 - Resource not allowed
Internet Information Services
although the page can be displayed if I paste the URL in
the browser's address!
I tried using BOTH:
<input type="submit" value="OK"
OnClick="javascript:window.location('thanks.htm')" >
and specifying thanks.htm in the ACTION of the Form.

For [1]: I couldn't get back to the original form with:
<input type="submit" value="OK"
OnClick="javascript:window.top.history.back()">

Any ideas will be greatly appreciated, thnx!
Calvin
Jul 19 '05 #1
2 2729
I don't understand why you're using javascript to change the page location
on submit buttons. Don't you want the form to submit? Just have the form
submit and use Response.Redirect "thanks.htm" in ASP code. Or am I not
understanding something you're trying to do?

Ray at home

"Calvin" <ca*****@ci.campbell.ca.us> wrote in message
news:05****************************@phx.gbl...
Hi,

Envronment: IIS 5 on W2k sp3

Problem: I'm using a Form and when Submitted, will display
a confirmation page. The confirmation page is simply a
Form with an OK button. I want the browser to display
either [1] the first form OR [2] to another page and I
couldn't do either.

Here's what I have problem with:
For [2], I got the error
HTTP 405 - Resource not allowed
Internet Information Services
although the page can be displayed if I paste the URL in
the browser's address!
I tried using BOTH:
<input type="submit" value="OK"
OnClick="javascript:window.location('thanks.htm')" >
and specifying thanks.htm in the ACTION of the Form.

For [1]: I couldn't get back to the original form with:
<input type="submit" value="OK"
OnClick="javascript:window.top.history.back()">

Any ideas will be greatly appreciated, thnx!
Calvin

Jul 19 '05 #2
MDW
If all you want is for the address to change when you
click on the button (and not actually submit any form data
to an ASP page), then try

<inuput type="button" onClick="....">
-----Original Message-----
Hi,

Envronment: IIS 5 on W2k sp3

Problem: I'm using a Form and when Submitted, will displaya confirmation page. The confirmation page is simply a
Form with an OK button. I want the browser to display
either [1] the first form OR [2] to another page and I
couldn't do either.

Here's what I have problem with:
For [2], I got the error
HTTP 405 - Resource not allowed
Internet Information Services
although the page can be displayed if I paste the URL in
the browser's address!
I tried using BOTH:
<input type="submit" value="OK"
OnClick="javascript:window.location('thanks.htm') ">
and specifying thanks.htm in the ACTION of the Form.

For [1]: I couldn't get back to the original form with:
<input type="submit" value="OK"
OnClick="javascript:window.top.history.back()">

Any ideas will be greatly appreciated, thnx!
Calvin
.

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Topspin | last post by:
I'm running PHP on Windows, but that's just the local test... in production it will be on Apache. I am not using PHP as a CGI. I want to perform redirection of the user's browser if the user...
0
by: Mike | last post by:
I can not figure out what is going on here. I hope somebody can please help!!! I've got an intranet ASP3 application running on a Win2k server. This application requires a login, so the user...
4
by: Lam | last post by:
Hi I have a question on page redirection A user login from a asp page (p1), it calls another asp page(p2) to do the validation, after successful validation, it's forwarded to a welcom page(p3)....
3
by: gtea | last post by:
I am using response.redirec to do the url redirection on my login page. The login page is under http://myURL/test/dir1/login.aspx, when the user login successfully, the login page redirects the...
1
by: Robert Cholewa | last post by:
Hi I'm using Microsoft.XMLHTTP object from within JavaScript HTA application (or WScript). Object is set to use asynchronous mode as following: --------- var oXMLRequest = new...
10
by: tasmisr | last post by:
This is an old problem,, but I never had it so bad like this before,, the events are refiring when clicking the Browser refresh button. In the Submit button in my webform, I capture the server side...
3
by: Ohad Young | last post by:
Hi, I have a frameset page that contains two frames: 1. the first frame, an aspx page, contains a menu for navigating in the website. 2. the second frame contains content, pdf, html or other...
0
by: Dimitrios Mpougas | last post by:
Hello, I have two asp.net pages. The first is a page (main.aspx) wich has four links on it. The href value of each link is: href="view.aspx?id=1" traget="_blank" href="view.aspx?id=2"...
2
by: fReDiNi | last post by:
Hi, I have an strange problem with session variables. I have a site hosted in a local server. I have physic access to this server and its configuration.(apache, php,files...). I have external...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.