By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

Submit form to another website fails to redirect

P: n/a
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="payportfrm" method="get"
action="<%=GetPayPortURL()%>">

string sScriptBlock= "<script language='javascript'>"

+ "window.parent.document.payportfrm.OrderReference. value='"

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

+ "window.parent.document.payportfrm.MerchantURL.val ue='"

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

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

Page.RegisterStartupScript("ConfirmResults", sScriptBlock);


Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
why aren't you using Response.Redirect if this code is run server side?
Ollie

"AndrewWithy" <An*********@discussions.microsoft.com> wrote in message
news:B8**********************************@microsof t.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="payportfrm" method="get"
action="<%=GetPayPortURL()%>">

string sScriptBlock= "<script language='javascript'>"

+ "window.parent.document.payportfrm.OrderReference. value='"

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

+ "window.parent.document.payportfrm.MerchantURL.val ue='"

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

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

Page.RegisterStartupScript("ConfirmResults", sScriptBlock);

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.