473,796 Members | 2,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Submit form to another website fails to redirect

We have an aspx page that is submitting a form that redirects to a 3rd party
website to take a payment from the customer. We have had 19 instances over a
3 day period where the user never made it to the 3rd party site but were
redirected back to the page that was submitted. These 19 instances came from
only 3 users, with 2 users repeating multiple times in succession. All 3
users were running WinXP with IE 6.0. The web servers are WIN2003 Web
Edition.

We have established from our 3rd party that the users never made it to their
website at all.

The following is the code used for the form submit.

<form id="payportfrm " name="payportfr m" method="get"
action="<%=GetP ayPortURL()%>">

string sScriptBlock= "<script language='javas cript'>"

+ "window.parent. document.paypor tfrm.OrderRefer ence.value='"

+ sOrderReference .ToString() + "';\n"

+ "window.parent. document.paypor tfrm.MerchantUR L.value='"

+ sMerchantURL.To String() + "';\n"

+ "window.parent. document.paypor tfrm.submit();</script>";

Page.RegisterSt artupScript("Co nfirmResults", sScriptBlock);


Nov 19 '05 #1
1 2314
why aren't you using Response.Redire ct if this code is run server side?
Ollie

"AndrewWith y" <An*********@di scussions.micro soft.com> wrote in message
news:B8******** *************** ***********@mic rosoft.com...
We have an aspx page that is submitting a form that redirects to a 3rd party website to take a payment from the customer. We have had 19 instances over a 3 day period where the user never made it to the 3rd party site but were
redirected back to the page that was submitted. These 19 instances came from only 3 users, with 2 users repeating multiple times in succession. All 3
users were running WinXP with IE 6.0. The web servers are WIN2003 Web
Edition.

We have established from our 3rd party that the users never made it to their website at all.

The following is the code used for the form submit.

<form id="payportfrm " name="payportfr m" method="get"
action="<%=GetP ayPortURL()%>">

string sScriptBlock= "<script language='javas cript'>"

+ "window.parent. document.paypor tfrm.OrderRefer ence.value='"

+ sOrderReference .ToString() + "';\n"

+ "window.parent. document.paypor tfrm.MerchantUR L.value='"

+ sMerchantURL.To String() + "';\n"

+ "window.parent. document.paypor tfrm.submit();</script>";

Page.RegisterSt artupScript("Co nfirmResults", sScriptBlock);

Nov 19 '05 #2

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

Similar topics

8
3054
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform" action="page2.asp" method="post"> But I don't want to open another page, I just want to submit the form data. Should I do the following?? myform.submit();
4
3343
by: Keith | last post by:
Is it possible to submit a form as soon as the page it is on loads and then redirect to another page? Thanks
3
2087
by: Matt | last post by:
When people say submit the form data, does it mean the form data are submitted to web browser using either HTTP GET or POST method, and then it will redirect to another page. For example, this is page1.aspx <form action="page2.aspx" method="post"> means it will submit the page1.aspx form data to the web server, and then redirect from page1.aspxto page2.aspx?
1
14165
by: Paul Oakfleet | last post by:
The script below will disable Submit button until user accept terms, and will redirect user to another page after clicking on Submit button. The script seems to work fine on my PC (Windows XP, IE6), however I don't know if it's written well. I would like the opinion of someone who knows how to write these codes properly. Please let me know if there're any logic errors. PS: Please keep in mind that I didn't write this script, I found it
10
19362
by: Gregory A Greenman | last post by:
I'm trying to write a program in vb.net to automate filling out a series of forms on a website. There are three forms I need to fill out in sequence. The first one is urlencoded. My program is able to fill that one out just fine. The second form is multipart/form-data. Unfortunately, I haven't been able to fill that out in a way that makes the server happy. I set up a copy of this form at my web site so that I could see exactly what a...
5
5906
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse button to open the "file browse" dialog and the Submit button to submit the form data.
3
2260
by: Chung | last post by:
Hi all, I have used the following code for doing the form submission. I don't think this is a right way to submit a from to a new aspx page because I need to add a dummy form in between. Could anyone tell me a proper way to do this? Looking forward to your reply. Thanks!
4
1627
by: neil.fitzgerald | last post by:
Hi all, I'm using pywin to write a script that will commandeer internet explorer to go to a certain website, where it will navigate menus, post forms, and eventually retrieve certain data. Here's my question: Suppose a form has more than one submit button. Now the COM 'form' object has a 'submit' method that doesn't take any arguments, so how do I tell it which button I want to press?
7
2288
alexjimenez
by: alexjimenez | last post by:
Hi, i am newbie in ASP I try to redirect this form after submit to another page....what should i do? Strings of form : <%@ Page Language="C#" Debug="False" %> <%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %> <%@ import Namespace="System.Web.Mail" %> <script runat="server">
0
10456
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10230
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10174
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10012
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7548
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6788
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2926
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.